From ea62f12e46d5b27161d4f3e7ff665f10fc272aaa Mon Sep 17 00:00:00 2001 From: Trey Date: Fri, 23 Feb 2018 18:10:37 -0500 Subject: ping command, better help, and shizz --- bot.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bot.js') diff --git a/bot.js b/bot.js index 469137b..f9dcd3f 100644 --- a/bot.js +++ b/bot.js @@ -28,9 +28,15 @@ function parseCommand(msg) { msg.channel.send( new Discord.RichEmbed() .setColor (0x00ae86) - .addField('Getting Started |', '**p:help** | Displays this help message') + .setTitle('PokeBot Command List') + .setDescription('These are the commands you can use. My prefix is `p:`') + .addField('Core', 'help', true) + .setFooter('PokeBot Beta') ); break; + case 'ping': + msg.channel.send(':ping_pong: Pong! ' + Math.floor(bot.ping)); + break; } } bot.login(config.token); -- cgit v1.2.3