From 4c30d0a434da040b9248aeef1838846af2feb11a Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Fri, 18 Feb 2022 12:46:17 -0800 Subject: [PATCH] idk --- node/boto.js | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/node/boto.js b/node/boto.js index 4385240..ce34bde 100644 --- a/node/boto.js +++ b/node/boto.js @@ -76,6 +76,7 @@ client.on('message', (channel, tags, message, self) => { const isSub = badges.subscriber || badges.founder; // Define Subs const botUserState = client.userstate[channel]; // MOD Status Check const amMod = botUserState !== undefined && botUserState.mod === true; // Define Mod Status + const percent = Math.floor(Math.random() * 100) + 1; //RNG Percentages% if(self || !message.startsWith('!')) return; // Command Parser const args = message.slice(1).split(' '); @@ -108,13 +109,29 @@ client.on('message', (channel, tags, message, self) => { } else { let { name, type } = user; - const percent = Math.floor(Math.random() * 100) + 1; client.say(channel, `/me @${tags.username}'s simp meter for @${name} is now ${percent}%!`); } }) .catch(err => console.log('[ERR]', err)); } - // CMD | Dice Roll + // RNGesus + if (command === 'cult' || + commands === 'rngesus') { + // Get a random user but skip the user requesting a random user + getRandomChatter(channel, { skipList: [tags.username] }) + .then(user => { + if (user === null) { + client.say(channel, `Sorry ${tags.username}, no one in chat to simp on! #smallstreamerproblems`); + } + else { + let { name, type } = user; + // const percent = Math.floor(Math.random() * 100) + 1; + client.say(channel, `/me @${tags.username} but favors @${name} offering ${percent}% more!`); + } + }) + .catch(err => console.log('[ERR]', err)); + } + // CMD | Dice Roll 4/6/8/9/12/20 if(command === 'dice' || command === 'roll') { const result = Math.floor(Math.random() * 6) + 1; @@ -211,7 +228,8 @@ client.on('message', (channel, tags, message, self) => { } // FX | K A P P A G E N S if(command === 'bg' || - command === 'notgg') { + command === 'notgg' || + command === 'rip') { client.say(channel, `!kappagen sarimoDEAD sarimoGAME`); } if(command === 'clap' ||