fix yabai chances

This commit is contained in:
2025-06-24 18:39:44 +02:00
parent 0437a6ba3c
commit dcfb013447

View File

@@ -6,7 +6,7 @@ export default new Command('yabai',
['yabai', 'goon'], ['yabai', 'goon'],
['moderator:manage:banned_users'], ['moderator:manage:banned_users'],
async (msg, user) => { async (msg, user) => {
const rand = Math.floor(Math.random() * 100) + 1; const rand = Math.floor(Math.random() * 101);
if (rand < 25) sendMessage(`${rand}% yabai! GIGACHAD`, msg.messageId); if (rand < 25) sendMessage(`${rand}% yabai! GIGACHAD`, msg.messageId);
else if (rand < 50) sendMessage(`${rand}% yabai POGGERS`, msg.messageId); else if (rand < 50) sendMessage(`${rand}% yabai POGGERS`, msg.messageId);
else if (rand === 50) sendMessage(`${rand}% yabai ok`, msg.messageId); else if (rand === 50) sendMessage(`${rand}% yabai ok`, msg.messageId);