From ef42d52c39e5dfa0af22030198e2f43081082da5 Mon Sep 17 00:00:00 2001 From: Techbot121 Date: Tue, 31 Oct 2023 17:11:31 +0100 Subject: [PATCH] don't care if the message was deleted before reacting --- app/services/discord/modules/shitposting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/discord/modules/shitposting.ts b/app/services/discord/modules/shitposting.ts index 39692f4b..deb85596 100644 --- a/app/services/discord/modules/shitposting.ts +++ b/app/services/discord/modules/shitposting.ts @@ -391,7 +391,7 @@ export default async (bot: DiscordBot) => { (rng <= REACTION_FREQ || (!isAllowedChannel && (isTriggerWord || isMaybeTriggerWord || isMention))) ) { - setTimeout(async () => msg.react(getRandomEmoji()), 1000 * 10); + setTimeout(async () => msg.react(getRandomEmoji()).catch(), 1000 * 10); } // Chatting