diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 13:17:10 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 13:17:10 -0500 |
| commit | 0b3bc7523faa49b5f9a5a57e34c5dc5dc01a4d1d (patch) | |
| tree | 7fdb96ed207e0df611ab01862a3e586e2bc7286e /bot.js | |
| parent | 057982b739f734ed0615a9545992b9cde9ad2dbe (diff) | |
| parent | 2e43e5fa059e4360bd4538376f600544190d5e21 (diff) | |
| download | PokeBot-0b3bc7523faa49b5f9a5a57e34c5dc5dc01a4d1d.tar.gz PokeBot-0b3bc7523faa49b5f9a5a57e34c5dc5dc01a4d1d.tar.bz2 PokeBot-0b3bc7523faa49b5f9a5a57e34c5dc5dc01a4d1d.zip | |
Merge remote-tracking branch 'origin/master'
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) => { |
