diff options
| author | Alee <alee14498@gmail.com> | 2018-02-24 13:13:04 -0500 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-02-24 13:13:04 -0500 |
| commit | 2e43e5fa059e4360bd4538376f600544190d5e21 (patch) | |
| tree | df850cbe0f6a234a4e0c9377156801c5da093aad /bot.js | |
| parent | b23970f7fba781030601b6ef436e615df3ecc40b (diff) | |
| download | PokeBot-2e43e5fa059e4360bd4538376f600544190d5e21.tar.gz PokeBot-2e43e5fa059e4360bd4538376f600544190d5e21.tar.bz2 PokeBot-2e43e5fa059e4360bd4538376f600544190d5e21.zip | |
You can now interact to this bot!
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -101,6 +101,18 @@ bot.on('messageDeleteBulk', (msgs) => { bot.on('message', (msg) => { parseCommand(msg); + + if (msg.mentions != null && msg.mentions.users != null) { + if (msg.mentions.users.has("416637860146446346")){ + if (msg.content.toLowerCase().includes("hello") || (msg.content.toLowerCase().includes("hi"))) { + msg.reply("Hi there."); + } else { + if (msg.content.toLowerCase().includes("shut") && msg.content.toLowerCase().includes("up")) { + msg.reply("Excuse me?") + } + } + } +} }); bot.on('messageUpdate', (oldMsg, newMsg) => { |
