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:
parent
0e1d8f3907
commit
38e03a85bb
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue