mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@ let commands: Collection<string, Command> | null = null;
|
||||||
|
|
||||||
export default new Event<"message">({
|
export default new Event<"message">({
|
||||||
async on(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.
|
// Load commands if it hasn't already done so. Luckily, it's called once at most.
|
||||||
if (!commands) commands = await loadCommands();
|
if (!commands) commands = await loadCommands();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue