diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 13:17:30 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 13:17:30 -0500 |
| commit | f0eceb99aea5595c338fc130f14d0eff67c7c9f2 (patch) | |
| tree | e3b6f6a12f50b25b08d179abc8b86bde6816fa78 /bot.js | |
| parent | 0b3bc7523faa49b5f9a5a57e34c5dc5dc01a4d1d (diff) | |
| download | PokeBot-f0eceb99aea5595c338fc130f14d0eff67c7c9f2.tar.gz PokeBot-f0eceb99aea5595c338fc130f14d0eff67c7c9f2.tar.bz2 PokeBot-f0eceb99aea5595c338fc130f14d0eff67c7c9f2.zip | |
eslint fix
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -103,16 +103,14 @@ 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?") - } + 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) => { |
