TravBot-v3/src/modules/intercept.ts

13 lines
435 B
TypeScript
Raw Normal View History

import {client} from "../index";
2021-05-17 18:48:38 +00:00
// Potentially port CE's intercept module to here?
// - ` ${text} `.test(/[ \.,\?!]hon[ \.,\?!]/)
// - "oil" will remain the same though, it's better that way (anything even remotely "oil"-related calls the image)
// - Also uwu and owo penalties
client.on("message", (message) => {
if (message.content.toLowerCase().includes("remember to drink water")) {
message.react("🚱");
}
});