Skip to content

Commit

Permalink
Update ping.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DomathID authored Oct 1, 2022
1 parent 508a8b5 commit c077a73
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions commands/General/ping.js
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@

const Discord = require("discord.js");

module.exports = {
name: "ping",
description: "Get the currently latency of the bot",
usage: "ping",
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: ["SEND_MESSAGES","EMBED_LINKS"],
nsfw: false,
cooldown: 5000,
ownerOnly: false,

async execute(client, message, args, data) {
message.channel.send(`Ping....`).then((m) => {
let latencyPing =Math.floor( m.createdTimestamp - message.createdTimestamp)
m.delete()
message.channel.send(`Your Ping: ` + `${latencyPing}`+ "ms");
});


},
};

0 comments on commit c077a73

Please sign in to comment.