From 339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff Mon Sep 17 00:00:00 2001 From: jtsshieh Date: Sat, 24 Feb 2018 20:19:29 -0500 Subject: New command handler. DMme if there are any errors and what the error is. (#16) --- src/commands/ping.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/commands/ping.js') diff --git a/src/commands/ping.js b/src/commands/ping.js index e2ff213..5ad8f78 100644 --- a/src/commands/ping.js +++ b/src/commands/ping.js @@ -1,7 +1,14 @@ -module.exports.run = async (client, message, args, abVersion) => { - message.reply("**PONG!** :ping_pong: " + Math.round(client.ping) + " ms"); -} +module.exports.run = async (client, message) => { + message.reply('**PONG!** :ping_pong: ' + Math.round(client.ping) + ' ms'); +}; -module.exports.config = { - command: "ping" -} \ No newline at end of file +exports.conf = { + aliases: [], + guildOnly: false, +}; +exports.help = { + name: 'ping', + description: 'Ping the bot.', + usage: 'ping', + category: '- General Commands', +}; -- cgit v1.2.3