Now give the real ping

main
Killian 4 years ago
parent 0a4329b600
commit 9913d7b895

@ -4,7 +4,7 @@ module.exports = class extends Command {
constructor(client) {
super(client, {
name: "ping",
description: "Return the bot ping (just a test command for now until the real ping is added)",
description: "Return the bot ping.",
category: "Bot",
enabled: true,
aliases: ["latency"],
@ -14,7 +14,9 @@ module.exports = class extends Command {
}
async run(message, args) {
message.chat.sendMessage(`Hey, my name is ${this.client.user.fullName} and i am an instagram bot.`);
message.chat.sendMessage('Calcul du ping...').then(m => {
m.delete();
message.chat.sendMessage(`Mon ping est de ${(m.timestamp - message.timestamp) / 1000}ms`)
})
}
}
}

@ -50,7 +50,7 @@ it means that the bot is ready to be used. 🎉
# Available commands
- !ping
- !ping: Return the bot ping
# Future updates

@ -10,7 +10,7 @@
"author": "Mr¤KayJayDee <killian.dalcin@gmail.com> (https://github.com/Mr-KayJayDee)",
"license": "MIT",
"dependencies": {
"@androz2091/insta.js": "github:androz2091/insta.js",
"@androz2091/insta.js": "github:androz2091/insta.js#develop",
"@discordjs/collection": "^0.1.6",
"chalk": "^4.1.0",
"dotenv": "^8.2.0"

Loading…
Cancel
Save