summaryrefslogtreecommitdiff
path: root/commands/ping.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-20 17:49:37 -0400
committerAlee <alee14498@gmail.com>2018-04-20 17:49:37 -0400
commitc4ef0d5d72dd47b76e39fa91a7552c19c8120ad8 (patch)
tree6077983d7e178343f841b3eb5b95b66f70b563bf /commands/ping.js
parent325f2ee581cd96d1d1812e95812bb6ea9f9606bc (diff)
downloadOswald-master.tar.gz
Oswald-master.tar.bz2
Oswald-master.zip
Working progress command handlerHEADmaster
Diffstat (limited to 'commands/ping.js')
-rw-r--r--commands/ping.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/commands/ping.js b/commands/ping.js
new file mode 100644
index 0000000..5ad82fd
--- /dev/null
+++ b/commands/ping.js
@@ -0,0 +1,14 @@
+module.exports.run = async (client, message) => {
+ message.reply('**PONG!** :ping_pong: ' + Math.round(client.ping) + ' ms');
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: false,
+};
+exports.help = {
+ name: 'ping',
+ description: 'Displays the ping of the bot.',
+ usage: 'ping',
+ category: '- General Commands',
+};