From 7cc5f971e67192e131b660e3abb2161d1aaf7a5c Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Wed, 25 Sep 2024 22:09:25 -0500 Subject: [PATCH] Implement nog4g autoreact --- src/components/autoreact.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/autoreact.ts b/src/components/autoreact.ts index df686c48..da1d8da5 100644 --- a/src/components/autoreact.ts +++ b/src/components/autoreact.ts @@ -57,6 +57,12 @@ export default class Autoreact extends BotComponent { await message.react(reaction); } } + if (message.content.includes("geeksforgeeks.org")) { + const reaction = message.guild!.emojis.cache.find(emoji => emoji.name === "nog4g"); + if (reaction !== undefined) { + await message.react(reaction); + } + } if (message.channel.id == this.wheatley.channels.introductions.id) { if (message.member == null) { // TODO: Ping zelis?