diff options
| author | jtsshieh <jtsshieh@outlook.com> | 2018-02-24 20:19:29 -0500 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2018-02-24 20:19:29 -0500 |
| commit | 339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff (patch) | |
| tree | f65c2891131f0519554620b69f633cd463b8de48 /src/commands/ping.js | |
| parent | 7842d67fb29855295be0c5b56bf25647227c5e1b (diff) | |
| download | AleeBot-339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff.tar.gz AleeBot-339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff.tar.bz2 AleeBot-339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff.zip | |
New command handler. DMme if there are any errors and what the error is. (#16)
Diffstat (limited to 'src/commands/ping.js')
| -rw-r--r-- | src/commands/ping.js | 19 |
1 files changed, 13 insertions, 6 deletions
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',
+};
|
