mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-12-22 12:11:06 +01:00
refactor: remove reaction functionality from message update
This commit is contained in:
parent
dd80f5eb9d
commit
fd02e46e06
1 changed files with 0 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue