mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-12-22 12:11:06 +01:00
fix: make the chance calculation correctly
This commit is contained in:
parent
51576f410a
commit
c0a963fcbf
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ function handleBunOnlyChannel(message: Message): boolean {
|
|||
}
|
||||
|
||||
// 10% chance to react with a random bun emoji
|
||||
if (Math.floor(Math.random() * 100) < 0) {
|
||||
if (Math.random() < 0.1) {
|
||||
const emoji = getRandomBunEmoji();
|
||||
message.react(`${emoji.name}:${emoji.id}`, true);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue