summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-16 20:22:20 -0700
committer8cy <[email protected]>2020-07-16 20:22:20 -0700
commitf18d6e1165d01ab8f01f97a2a2be59598581dcca (patch)
tree7613d7243945afc28cc8102a8c282716faaf705b /src
parentadd nickname command (diff)
downloaddep-core-f18d6e1165d01ab8f01f97a2a2be59598581dcca.tar.xz
dep-core-f18d6e1165d01ab8f01f97a2a2be59598581dcca.zip
add auto water reaction
Diffstat (limited to 'src')
-rw-r--r--src/bot.ts10
-rw-r--r--src/config.json2
2 files changed, 7 insertions, 5 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 7202443..028e063 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -186,11 +186,13 @@ client.on('message', async msg => {
}
// If a message mentions everyone, react with a random emoji
- if (msg.mentions.everyone) {
- msg.react(emoji.random());
- }
+ if (msg.mentions.everyone) msg.react(emoji.random());
+
+ // If a message is in Kat's Korner and it mentions the word water, react with LizardsWater emoji.
+ if (msg.guild?.id == '663964105983393793')
+ if (msg.content.includes("water")) msg.react('731022085530583100')
});
// Register client
client.login(config['secret']);
-//client.login(config['secret-dev']); \ No newline at end of file
+//client.login(config['secret-dev']);
diff --git a/src/config.json b/src/config.json
index f342a0b..ea7f89a 100644
--- a/src/config.json
+++ b/src/config.json
@@ -2,7 +2,7 @@
"secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A",
"secret-dev":"NzEyMDg4MzY5MjA2OTE5MjY5.XsMeEw.Yy0a8m2vZLDbPi7cZ8aqCalMR68",
"yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8",
- "version":"1.10.31",
+ "version":"1.10.32",
"fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a",
"mongodburi": "mongodb://sin:[email protected]:47107/heroku_4qrjvmb9"
}