remake yabai command to be more fun!

This commit is contained in:
2025-06-24 02:09:12 +02:00
parent 2a430befbf
commit 39448cbad4
3 changed files with 21 additions and 12 deletions

View File

@@ -1,16 +1,18 @@
import { Command, sendMessage } from ".";
import { type HelixSendChatMessageParams } from "@twurple/api";
import { Command, doTimeout, sendMessage } from ".";
// Remake of the !yabai command in ttv/kiara_tv
export default new Command('yabai',
['yabai', 'goon'],
[],
['moderator:manage:banned_users'],
async msg => {
const rand = Math.floor(Math.random() * 100) + 1;
if (rand < 25) await sendMessage(`${rand}% yabai! chumpi4Bewwy`, msg.messageId);
else if (rand < 50) await sendMessage(`${rand}% yabai chumpi4Hustle`, msg.messageId);
else if (rand === 50) await sendMessage(`${rand}% yabai kiawaBlank`, msg.messageId);
else if (rand < 80) await sendMessage(`${rand}% yabai chumpi4Shock`, msg.messageId);
else await sendMessage(`${rand}% yabai chumpi4Jail`, 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 ok`, msg.messageId);
else if (rand < 90) sendMessage(`${rand}% yabai AINTNOWAY`, msg.messageId);
else {
sendMessage(`${msg.chatterDisplayName} is ${rand}% yabai CAUGHT`);
doTimeout(msg.chatterId, 'TOO SUS');
};
}
);