mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-10 01:08:07 +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
|
// 10% chance to react with a random bun emoji
|
||||||
if (Math.floor(Math.random() * 100) < 0) {
|
if (Math.random() < 0.1) {
|
||||||
const emoji = getRandomBunEmoji();
|
const emoji = getRandomBunEmoji();
|
||||||
message.react(`${emoji.name}:${emoji.id}`, true);
|
message.react(`${emoji.name}:${emoji.id}`, true);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue