Too lazy to add interceptor; get content instead.

This is for my running joke of reacting with 🚱
to CheeseBot's "Remember to drink water!" message.
This commit is contained in:
Keanu Timmermans 2021-03-16 19:01:44 +01:00
parent 0e1d8f3907
commit 38e03a85bb
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ let commands: Collection<string, Command> | null = null;
export default new Event<"message">({
async on(message) {
if (message.content.toLowerCase().includes("remember to drink water")) {
message.react("🚱");
}
// Load commands if it hasn't already done so. Luckily, it's called once at most.
if (!commands) commands = await loadCommands();