aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/bot.js b/bot.js
index 65357f5..ab11781 100644
--- a/bot.js
+++ b/bot.js
@@ -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) => {