From b3c652d509e79f0b057f4022d9fdc331a75931d2 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Mon, 14 Feb 2022 14:46:18 -0800 Subject: [PATCH] timeout test --- node/boto.js | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/node/boto.js b/node/boto.js index 388f5fe..d2b9e56 100644 --- a/node/boto.js +++ b/node/boto.js @@ -20,6 +20,8 @@ const client = new tmi.Client({ client.connect(); // ALERTS START +// ================================ +// -------------------------------- // client.on("action", (channel, userstate, message, self) => { // // Don't listen to my own messages.. // if (self) return; @@ -27,12 +29,16 @@ client.connect(); // }); // import { ttv_alerts } from "./alerts.js"; // ttv_alerts(); +// SUB | Anon => Paid +// -------------------------------- client.on("anongiftpaidupgrade", (channel, username, userstate) => { console.log('HYPE | @'.green+ username.yellow, 'just upgraded their Anon-Gift-Sub => PAID! Userstate?', userstate.yellow); client.say(channel, `Legit, @`+ username, `just upgraded their Anon-Gift-Sub to a paid sub! Thanks for the support, I feel like a real boy!`); }); +// MOD | Ban +// -------------------------------- client.on("ban", (channel, username, reason, userstate) => { - console.log(''); + 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, `!kappagen BOP BOP BOP `); }); @@ -42,8 +48,10 @@ client.on("ban", (channel, username, reason, userstate) => { // // Do your stuff. // console.log('LOG: Chat'); // }); +// HYPE | Bits / Cheer +// -------------------------------- client.on("cheer", (channel, userstate, message) => { - console.log('HYPE |'.green, userstate.yellow, 'with msg of'.green, message.yellow) + console.log('HYPE |'.green, userstate.yellow, 'with msg of'.green, message.yellow) if (message !== null){ client.say(channel, `/me HYPE! Bits = Boto-fuel! Thanx for the support! I also found this message in a bottle "`+ message, `".`); client.say(channel, `!kappagen sarimoHYPE sarimoBITS`); @@ -53,6 +61,8 @@ client.on("cheer", (channel, userstate, message) => { } }); +// CHAT | Chat-Mode | Cleared +// -------------------------------- client.on("clearchat", (channel) => { console.log('LOG | Chat was cleared!'.brightRed) client.say(channel, `Chat Rule Reminder`); @@ -60,15 +70,19 @@ client.on("clearchat", (channel) => { client.say(channel, `/me 2. Do NOT be a Troll!`); client.say(channel, `/me 3. Do NOT be another brick in the wall!`); }); +// DUPE | Connected & Connecting already logged in TMI +// -------------------------------- client.on("connected", (address, port) => { - console.log('LOG | Connected @'.green, address.yellow, 'on port'.green, port); + // console.log('LOG | Connected @'.green, address.yellow, 'on port'.green, port); }); client.on("connecting", (address, port) => { - console.log('LOG | Connecting @'.green, address.yellow, 'on port'.green, port); + // console.log('LOG | Connecting @'.green, address.yellow, 'on port'.green, port); }); client.on("disconnected", (reason) => { console.log('LOG |'.brightRed, reason.yellow, 'caused a disconnection...'.brightRed); }); +// CHAT | Chat-Mode | Emote only +// -------------------------------- client.on("emoteonly", (channel, enabled) => { console.log('CHAT MODE: Emotes Only '); }); @@ -77,23 +91,33 @@ client.on("emoteonly", (channel, enabled) => { // console.log('Emote Sets: IDK WHAT TO DO WITH THESE '); // console.log(obj); // }); +// CHAT | Chat-Mode | Followers +// -------------------------------- client.on("followersonly", (channel, enabled, length) => { console.log('CHAT MOD: Followers only enabled!'); }); +// SUB | Gift => Paid +// -------------------------------- client.on("giftpaidupgrade", (channel, username, sender, userstate) => { console.log('LOG: Gift-Sub UPGRADED to a real full blown sub! '); }); +// HYPE | Hosted +// -------------------------------- client.on("hosted", (channel, username, viewers, autohost) => { console.log('LOG: TYVM! For the host!'); 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 sarimoHYPE sarimoLURK`); }); +// HYPE | Hosting +// -------------------------------- client.on("hosting", (channel, target, viewers) => { console.log('HYPE | Logging into'.yellow, 'Twitch TV'.brightBlue); // HYPE | Hosting client.say(channel, `/me Stick around as we host @`+ target, `they may take our viewership of`, viewers +`, but we'll never take their FREEDOM!!! sarimoFREEDOM`); client.say(channel, `!kappagen sarimoNERD sarimoKO`); }); +// CHAT | User Joined +// -------------------------------- client.on("join", (channel, username, self) => { console.log('LOG |'.brightBlue, username.yellow, 'joined the chat!'.brightBlue); if(username === 'cho0tem' || @@ -139,6 +163,8 @@ client.on("mods", (channel, mods) => { client.on("notice", (channel, msgid, message) => { console.log('LOG: Notice? '.yellow, msgid, message); }); +// CHAT | User left +// -------------------------------- client.on("part", (channel, username, self) => { console.log('LOG:'.brightRed, username.yellow, 'left the chat...'.brightRed); // client.say(channel, `/me -1 Chatter! Where's my bounty hunters? Essemble the *air-qoutes* search-party *air-qoutes*`); @@ -168,6 +194,8 @@ client.on("resub", function (channel, username, months, message, userstate, meth client.on("serverchange", (channel) => { console.log('LOG | Server changed to:'.brightRed, channel); }); +// CHAT | Chat-Mode | Slow +// -------------------------------- client.on("slowmode", (channel, enabled, length) => { console.log('CHAT MODE: Slow Mode enabled! '); client.say(channel, `CHAT-MODE: Slow`); @@ -192,12 +220,18 @@ client.on("subscription", function (channel, username, method, message, userstat client.say(channel, `/me BLEEP! BLOOP! New subscriber! Spam your new emotes!!! Let's see you're fav!`); client.say(channel, `!kappagen sarimoKO sarimoNERD`); }); +// MOD | Timeout +// -------------------------------- client.on("timeout", (channel, username, reason, duration, userstate) => { + console.log('MOD-LOG | @'+ username, 'was banned for:', seconds, 'seconds | Reason:', reason); + client.say(channel, `Mods have spoken! @`+ username, `please take these`, seconds, `to reconsider:`, reason); client.say(channel, `!kappagen sarimoSALT sarimoRAGE`); }); client.on("unhost", (channel, viewers) => { client.say(channel, `/me @Sarimoko has turned if hosting, please standby for further instruction!`); }); +// MOD | Un-Modded +// -------------------------------- client.on("unmod", (channel, username) => { client.say(channel, `Oof, modship`); }); @@ -209,4 +243,5 @@ client.on("whisper", (from, userstate, message, self) => { console.log('DM | From:'.green, from, userstate, 'MSG:'.green, message); client.say(channel, `/me [+1] Inbox | Received a new SEXT message from: @`+ from +`!`); }); -// ALERTS STOP \ No newline at end of file +// ALERTS STOP +// ================================