From 4d874e0ba5b60eee6938e08ddd0274a43dc49731 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Thu, 17 Feb 2022 00:31:15 -0800 Subject: [PATCH] test --- node/boto.js | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/node/boto.js b/node/boto.js index a9292e3..4385240 100644 --- a/node/boto.js +++ b/node/boto.js @@ -290,7 +290,7 @@ client.on("anongiftpaidupgrade", (channel, username, userstate) => { // -------------------------------- client.on("ban", (channel, username, reason, userstate) => { console.log('MOD-LOG: @'.brightRed+ username.yellow, 'was banned for:'.brightRed, reason.yellow); - client.say(channel, `/me BYE FELICIA!!! Critical hit from the MODs Ban-Hammer attack!`); + client.say(channel, `/me BYE FELICIA!!! MODs used Ban-Hammer attack on `+ username +` and CRITICAL HIT!`); client.say(channel, `!kappagen BOP BOP BOP `); }); // client.on("chat", (channel, userstate, message, self) => { @@ -337,7 +337,8 @@ client.on("disconnected", (reason) => { // CHAT | Chat-Mode | Emote only // -------------------------------- client.on("emoteonly", (channel, enabled) => { - console.log('CHAT MODE: Emotes Only '); + console.log('CHAT MODE: Emotes Only '); + client.say(channel, `/me CHAT| Emote Only Mode:`, enabled); }); // client.on("emotesets", (sets, obj) => { // // Here are the emotes I can use: @@ -347,7 +348,8 @@ client.on("emoteonly", (channel, enabled) => { // CHAT | Chat-Mode | Followers // -------------------------------- client.on("followersonly", (channel, enabled, length) => { - console.log('CHAT MOD: Followers only enabled!'); + console.log('CHAT MOD: Followers only enabled!'); + client.say(channel, `/me CHAT| Followers Only Mode:`, enabled); }); // SUB | Gift => Paid // -------------------------------- @@ -410,17 +412,22 @@ client.on("logon", () => { // MODS | Chat Message Deleted / Removed // -------------------------------- client.on("messagedeleted", (channel, username, deletedMessage, userstate) => { - console.log('LOG | Deleted MSG'.brightRed); + console.log('LOG | Deleted MSG'.brightRed); + client.say(channel, `/me 404 | Error | @`+ username +`'s message NOT found!`); + client.say(channel, `I eat trolls like your for breakfast... Feed me Seymour!`); }); // MOD | Added to MOD List // -------------------------------- client.on("mod", (channel, username) => { - console.log('LOG |'.brightRed, username.yellow, 'was added as a MOD'.brightRed); + console.log('LOG |'.brightRed, username.yellow, 'was added as a MOD'.brightRed); + client.say(channel, `/me @` + username + ` was added to The Mods!`); + client.say(channel, `You're not after my job are you?! I have tenor...`); }); // CHAT | Mods List // -------------------------------- client.on("mods", (channel, mods) => { - console.log('LOG: Mod?'.yellow, mods); + console.log('LOG: Mod?'.yellow, mods); + client.say(channel, `/me The Mods: `+ mods); }); // ??? // -------------------------------- @@ -443,8 +450,12 @@ client.on("part", (channel, username, self) => { // HYPE | Incoming Raid // -------------------------------- client.on("raided", (channel, username, viewers) => { - client.say(channel, `/me TYVM @`+ username, `we may take your viewership of`, viewers+`, but we'll never take their FREEDOM!!! sarimoFREEDOM`); - client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoKO`); + if (viewers === 0 || viewers === 1) { + client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoKO`); + } else { + client.say(channel, `/me TYVM @` + username, `we may take your viewership of`, viewers + `, but we'll never take their FREEDOM!!! sarimoFREEDOM`); + client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoKO`); + } }); // ??? // -------------------------------- @@ -459,7 +470,7 @@ client.on("reconnect", () => { // SUB | Re-Sub // -------------------------------- client.on("resub", function (channel, username, months, message, userstate, methods) { - client.say(channel, `/me BLEEP! BLOOP! Legend re-sub! Thanks for your continued support!`); + client.say(channel, `/me HYPE! TYVM @`+ username +` for re-subbing for `+ months +` months now!`); client.say(channel, `!kappagen sarimoHYPE sarimoKO`); }); // ??? @@ -476,7 +487,7 @@ client.on("serverchange", (channel) => { // -------------------------------- client.on("slowmode", (channel, enabled, length) => { console.log('CHAT MODE: Slow Mode enabled! '); - client.say(channel, `CHAT-MODE: Slow`); + client.say(channel, `/me CHAT| Slow Mode:`, enabled); }); // SUB | Gift-Sub // -------------------------------- @@ -498,7 +509,7 @@ client.on("submysterygift", (channel, username, numbOfSubs, methods, userstate) // -------------------------------- client.on("subscribers", (channel, enabled) => { console.log('LOG | CHAT MODE | Sub-Only is'.brightRed, eneabled.yellow); - client.say(channel, `CHAT| Subscribers mode:`, enabled); + client.say(channel, `/me CHAT| Subscribers Only Mode:`, enabled); }); // SUB | Subscriber // --------------------------------