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
// ---
// Color Guid
// Old Color Guid
// red
// console.log('\x1b[31m%s\x1b[0m', 'I am red')
// green
@ -14,6 +14,13 @@
// console.log('\x1b[35m%s\x1b[0m', 'I am magenta')
// 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();
const tmi = require('tmi.js');
@ -400,23 +407,25 @@ client.on("ban", (channel, username, reason, userstate) => {
// console.log('LOG: Chat');
// });
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, `!kappagen sarimoHYPE sarimoBITS`);
});
client.on("clearchat", (channel) => {
console.log('LOG | Chat was cleared!'.brightRed)
client.say(channel, `Chat Rule Reminder`);
client.say(channel, `/me 1. Do NOT feed the Trolls!`);
client.say(channel, `/me 2. Do NOT be a Troll!`);
client.say(channel, `/me 3. Do NOT be another brick in the wall!`);
});
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) => {
console.log('LOG: Connecting ');
console.log('LOG | Connecting @'.green, address.yellow, 'on port'.green, port);
});
client.on("disconnected", (reason) => {
console.log('LOG: Dis-Connected ');
console.log('LOG |'.brightRed, reason.yellow, 'caused a disconnection...'.brightRed);
});
client.on("emoteonly", (channel, enabled) => {
console.log('CHAT MODE: Emotes Only ');
@ -466,21 +475,21 @@ client.on("logon", () => {
// }
// });
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) => {
// Modded.
console.log('LOG: Modded ');
console.log('LOG |'.brightRed, username.yellow, 'was added as a MOD'.brightRed);
});
client.on("mods", (channel, mods) => {
// List
console.log('LOG: Mods ');
console.log('LOG: Mod?'.yellow, mods);
});
client.on("notice", (channel, msgid, message) => {
console.log('LOG: Notice ');
console.log('LOG: Notice? '.yellow, msdid, message);
});
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.on("ping", () => {});
@ -496,8 +505,7 @@ client.on("raided", (channel, username, viewers) => {
// console.log(message.raw);
// });
client.on("reconnect", () => {
// Do your stuff.
console.log('Re-Connecting ');
console.log('Re-Connecting...'.green);
});
client.on("resub", function (channel, username, months, message, userstate, methods) {
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 ');
// });
client.on("serverchange", (channel) => {
console.log('LOG: Server Change ');
console.log('LOG | Server changed to:'.brightRed, channel);
});
client.on("slowmode", (channel, enabled, length) => {
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) => {
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.on("submysterygift", (channel, username, numbOfSubs, methods, userstate) => {