Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-13 15:00:11 +00:00
parent ce7bbfe3ee
commit 0920d6c9d3
1 changed files with 22 additions and 12 deletions

View File

@ -1,7 +1,7 @@
// B O T O // B O T O
// --- // ---
// Color Guid // Old Color Guid
// red // red
// console.log('\x1b[31m%s\x1b[0m', 'I am red') // console.log('\x1b[31m%s\x1b[0m', 'I am red')
// green // green
@ -14,6 +14,13 @@
// console.log('\x1b[35m%s\x1b[0m', 'I am magenta') // console.log('\x1b[35m%s\x1b[0m', 'I am magenta')
// cyan // cyan
// console.log('\x1b[36m%s\x1b[0m', 'I am cyan') // console.log('\x1b[36m%s\x1b[0m', 'I am cyan')
// New Color Guide
//console.log('Blue Kindacode.com'.blue);
//console.log('This is a yellow sentence'.yellow);
//console.log('This is green'.green);
//console.log('Random color'.random);
//console.log('Bright blue'.brightBlue);
//console.log('Bright Red'.brightRed);
require('dotenv').config(); require('dotenv').config();
const tmi = require('tmi.js'); const tmi = require('tmi.js');
@ -400,23 +407,25 @@ client.on("ban", (channel, username, reason, userstate) => {
// console.log('LOG: Chat'); // console.log('LOG: Chat');
// }); // });
client.on("cheer", (channel, userstate, message) => { client.on("cheer", (channel, userstate, message) => {
console.log('HYPE |'.green, userstate.yellow, 'with msg of'.green, message.yellow)
client.say(channel, `/me BLEEP! BLOOP! O'SNAP! Bit hype!!! sarimoBANG`); client.say(channel, `/me BLEEP! BLOOP! O'SNAP! Bit hype!!! sarimoBANG`);
client.say(channel, `!kappagen sarimoHYPE sarimoBITS`); client.say(channel, `!kappagen sarimoHYPE sarimoBITS`);
}); });
client.on("clearchat", (channel) => { client.on("clearchat", (channel) => {
console.log('LOG | Chat was cleared!'.brightRed)
client.say(channel, `Chat Rule Reminder`); client.say(channel, `Chat Rule Reminder`);
client.say(channel, `/me 1. Do NOT feed the Trolls!`); client.say(channel, `/me 1. Do NOT feed the Trolls!`);
client.say(channel, `/me 2. Do NOT be a Troll!`); client.say(channel, `/me 2. Do NOT be a Troll!`);
client.say(channel, `/me 3. Do NOT be another brick in the wall!`); client.say(channel, `/me 3. Do NOT be another brick in the wall!`);
}); });
client.on("connected", (address, port) => { client.on("connected", (address, port) => {
console.log('LOG: Connected '); console.log('LOG | Connected @'.green, address.yellow, 'on port'.green, port);
}); });
client.on("connecting", (address, port) => { client.on("connecting", (address, port) => {
console.log('LOG: Connecting '); console.log('LOG | Connecting @'.green, address.yellow, 'on port'.green, port);
}); });
client.on("disconnected", (reason) => { client.on("disconnected", (reason) => {
console.log('LOG: Dis-Connected '); console.log('LOG |'.brightRed, reason.yellow, 'caused a disconnection...'.brightRed);
}); });
client.on("emoteonly", (channel, enabled) => { client.on("emoteonly", (channel, enabled) => {
console.log('CHAT MODE: Emotes Only '); console.log('CHAT MODE: Emotes Only ');
@ -466,21 +475,21 @@ client.on("logon", () => {
// } // }
// }); // });
client.on("messagedeleted", (channel, username, deletedMessage, userstate) => { client.on("messagedeleted", (channel, username, deletedMessage, userstate) => {
console.log('LOG: Msg deleted '); console.log('LOG | Removed MSG | Author:'.brightRed, username.yellow, '/'.yellow, userstate.yellow 'Chat:'.brightRed, deletedMessage.yellow);
}); });
client.on("mod", (channel, username) => { client.on("mod", (channel, username) => {
// Modded. // Modded.
console.log('LOG: Modded '); console.log('LOG |'.brightRed, username.yellow, 'was added as a MOD'.brightRed);
}); });
client.on("mods", (channel, mods) => { client.on("mods", (channel, mods) => {
// List // List
console.log('LOG: Mods '); console.log('LOG: Mod?'.yellow, mods);
}); });
client.on("notice", (channel, msgid, message) => { client.on("notice", (channel, msgid, message) => {
console.log('LOG: Notice '); console.log('LOG: Notice? '.yellow, msdid, message);
}); });
client.on("part", (channel, username, self) => { client.on("part", (channel, username, self) => {
console.log('LOG: -1 IRC Chatter'); 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*`); // client.say(channel, `/me -1 Chatter! Where's my bounty hunters? Essemble the *air-qoutes* search-party *air-qoutes*`);
}); });
//client.on("ping", () => {}); //client.on("ping", () => {});
@ -496,8 +505,7 @@ client.on("raided", (channel, username, viewers) => {
// console.log(message.raw); // console.log(message.raw);
// }); // });
client.on("reconnect", () => { client.on("reconnect", () => {
// Do your stuff. console.log('Re-Connecting...'.green);
console.log('Re-Connecting ');
}); });
client.on("resub", function (channel, username, months, message, userstate, methods) { 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 BLEEP! BLOOP! Legend re-sub! Thanks for your continued support!`);
@ -507,7 +515,7 @@ client.on("resub", function (channel, username, months, message, userstate, meth
// console.log('LOG: Roomstate '); // console.log('LOG: Roomstate ');
// }); // });
client.on("serverchange", (channel) => { client.on("serverchange", (channel) => {
console.log('LOG: Server Change '); console.log('LOG | Server changed to:'.brightRed, channel);
}); });
client.on("slowmode", (channel, enabled, length) => { client.on("slowmode", (channel, enabled, length) => {
console.log('CHAT MODE: Slow Mode enabled! '); console.log('CHAT MODE: Slow Mode enabled! ');
@ -515,6 +523,8 @@ client.on("slowmode", (channel, enabled, length) => {
}); });
client.on("subgift", (channel, username, streakMonths, recipient, methods, userstate) => { client.on("subgift", (channel, username, streakMonths, recipient, methods, userstate) => {
let senderCount = ~~userstate["msg-param-sender-count"]; // IDK let senderCount = ~~userstate["msg-param-sender-count"]; // IDK
console.log(username.yellow, `Gift-Subbed to`.brightBlue, recipient.yellow,`methods`.brightBlue, methods,`streak`.brightBlue, streakMonths);
client.say(channel, `/me Wow TYVM`, username, `the support & sharing the emote SPAM!`);
client.say(channel, `!kappagen sarimoKO sarimoNERD`); client.say(channel, `!kappagen sarimoKO sarimoNERD`);
}); });
client.on("submysterygift", (channel, username, numbOfSubs, methods, userstate) => { client.on("submysterygift", (channel, username, numbOfSubs, methods, userstate) => {