diff options
| author | Trey <trey6979@gmail.com> | 2018-02-23 18:10:37 -0500 |
|---|---|---|
| committer | Trey <trey6979@gmail.com> | 2018-02-23 18:10:37 -0500 |
| commit | ea62f12e46d5b27161d4f3e7ff665f10fc272aaa (patch) | |
| tree | d6f9d483a3ed7ac0d7bd378e6e1c3f385ec61342 | |
| parent | aaf11f661ac4d37b3be3933c9655bb287085da8b (diff) | |
| download | PokeBot-ea62f12e46d5b27161d4f3e7ff665f10fc272aaa.tar.gz PokeBot-ea62f12e46d5b27161d4f3e7ff665f10fc272aaa.tar.bz2 PokeBot-ea62f12e46d5b27161d4f3e7ff665f10fc272aaa.zip | |
ping command, better help, and shizz
| -rw-r--r-- | bot.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |
