aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorTrey <trey6979@gmail.com>2018-02-23 18:10:37 -0500
committerTrey <trey6979@gmail.com>2018-02-23 18:10:37 -0500
commitea62f12e46d5b27161d4f3e7ff665f10fc272aaa (patch)
treed6f9d483a3ed7ac0d7bd378e6e1c3f385ec61342 /bot.js
parentaaf11f661ac4d37b3be3933c9655bb287085da8b (diff)
downloadPokeBot-ea62f12e46d5b27161d4f3e7ff665f10fc272aaa.tar.gz
PokeBot-ea62f12e46d5b27161d4f3e7ff665f10fc272aaa.tar.bz2
PokeBot-ea62f12e46d5b27161d4f3e7ff665f10fc272aaa.zip
ping command, better help, and shizz
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js8
1 files changed, 7 insertions, 1 deletions
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);