refactor: remove reaction functionality from message update

This commit is contained in:
Jozef Steinhübl 2024-01-15 21:47:24 +01:00
parent dd80f5eb9d
commit fd02e46e06
No known key found for this signature in database
GPG key ID: E944BC293F5FF7E7

View file

@ -17,15 +17,5 @@ function handleBunOnlyChannel(message: PartialMessage): boolean {
return true;
}
// check if there's reaction from bot
if (message.reactions?.some((reaction) => reaction.me)) return true;
// 1% chance to react with a random bun emoji
if (Math.floor(Math.random() * 100) === 0) {
message.react(getRandomBunEmoji().id, true);
return true;
}
message.react("🐰");
return true;
}