From c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 14:59:35 -0500 Subject: New Command system --- commands/Information/ping.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 commands/Information/ping.js (limited to 'commands/Information/ping.js') diff --git a/commands/Information/ping.js b/commands/Information/ping.js new file mode 100644 index 0000000..f4e50e4 --- /dev/null +++ b/commands/Information/ping.js @@ -0,0 +1,13 @@ +exports.run = (bot, msg) => { + msg.channel.send(':ping_pong: Pong! ' + Math.floor(bot.ping) + 'ms.'); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'ping', + description: 'Pings the bot and replies with the latency.', +}; -- cgit v1.2.3