aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorpokesudenk <thisis@notarealema.il>2018-02-24 13:19:33 -0500
committerpokesudenk <thisis@notarealema.il>2018-02-24 13:19:33 -0500
commit10ac5297c119d63469e2d0ecd2cab12782a9f5dc (patch)
treee2472614ab91625ee01e156f27f6387768624b0d /bot.js
parent394c75532cc01003846bfc6157e047ac675caf5f (diff)
parentf0eceb99aea5595c338fc130f14d0eff67c7c9f2 (diff)
downloadPokeBot-10ac5297c119d63469e2d0ecd2cab12782a9f5dc.tar.gz
PokeBot-10ac5297c119d63469e2d0ecd2cab12782a9f5dc.tar.bz2
PokeBot-10ac5297c119d63469e2d0ecd2cab12782a9f5dc.zip
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/bot.js b/bot.js
index e73ff6d..ab11781 100644
--- a/bot.js
+++ b/bot.js
@@ -101,6 +101,16 @@ 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) => {