This commit is contained in:
Sarimoko 2022-02-14 01:25:11 -08:00
parent a190b820aa
commit b284e529da
1 changed files with 37 additions and 29 deletions

View File

@ -1,26 +1,22 @@
// B O T O // B O T O
// --- // ---
// black
// Old Color Guid
// red // red
// console.log('\x1b[31m%s\x1b[0m', 'I am red')
// green // green
// console.log('\x1b[32m%s\x1b[0m', 'I am green')
// yellow // yellow
// console.log('\x1b[33m%s\x1b[0m', 'I am yellow')
// blue // blue
// console.log('\x1b[34m%s\x1b[0m', 'I am blue')
// magenta // magenta
// console.log('\x1b[35m%s\x1b[0m', 'I am magenta')
// cyan // cyan
// console.log('\x1b[36m%s\x1b[0m', 'I am cyan') // white
// New Color Guide // gray
//console.log('Blue Kindacode.com'.blue); // grey
//console.log('This is a yellow sentence'.yellow); // brightRed
//console.log('This is green'.green); // brightGreen
//console.log('Random color'.random); // brightYellow
//console.log('Bright blue'.brightBlue); // brightBlue
//console.log('Bright Red'.brightRed); // brightMagenta
// brightCyan
// brightWhite
require('dotenv').config(); require('dotenv').config();
const tmi = require('tmi.js'); const tmi = require('tmi.js');
@ -394,9 +390,11 @@ client.on('message', (channel, tags, message, self) => {
// console.log('LOG: Action '); // console.log('LOG: Action ');
// }); // });
client.on("anongiftpaidupgrade", (channel, username, userstate) => { client.on("anongiftpaidupgrade", (channel, username, userstate) => {
client.whisper(username, `BLEEP! BLOOP! Anon-Sub upgraded!!!`); 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!`);
}); });
client.on("ban", (channel, username, reason, userstate) => { client.on("ban", (channel, username, reason, userstate) => {
console.log('');
client.say(channel, `/me BYE FELICIA!!! Critical hit from the MODs Ban-Hammer attack!`); client.say(channel, `/me BYE FELICIA!!! Critical hit from the MODs Ban-Hammer attack!`);
client.say(channel, `!kappagen BOP BOP BOP `); client.say(channel, `!kappagen BOP BOP BOP `);
}); });
@ -408,8 +406,14 @@ client.on("ban", (channel, username, reason, userstate) => {
// }); // });
client.on("cheer", (channel, userstate, message) => { 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)
client.say(channel, `/me BLEEP! BLOOP! O'SNAP! Bit hype!!! sarimoBANG`); if (message !== null){
client.say(channel, `!kappagen sarimoHYPE sarimoBITS`); 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`);
} else {
client.say(channel, `/me HYPE!!! Bits = Boto fuel! Thanx for the support!`);
client.say(channel, `!kappagen sarimoHYPE sarimoBITS`);
}
}); });
client.on("clearchat", (channel) => { client.on("clearchat", (channel) => {
console.log('LOG | Chat was cleared!'.brightRed) console.log('LOG | Chat was cleared!'.brightRed)
@ -442,12 +446,15 @@ client.on("giftpaidupgrade", (channel, username, sender, userstate) => {
console.log('LOG: Gift-Sub UPGRADED to a real full blown sub! '); console.log('LOG: Gift-Sub UPGRADED to a real full blown sub! ');
}); });
client.on("hosted", (channel, username, viewers, autohost) => { client.on("hosted", (channel, username, viewers, autohost) => {
console.log('LOG: TYVM! For the host!'); console.log('LOG: TYVM! For the host!');{
client.say(channel, `/me BLEEP! BLOOP! @Sarimoko is auto-hosting various streamers! For more info: https://cord.sarimoko.com`); 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`);
}); });
client.on("hosting", (channel, target, viewers) => { client.on("hosting", (channel, target, viewers) => {
console.log('HYPE | Logging into'.yellow, 'Twitch TV'.brightBlue); console.log('HYPE | Logging into'.yellow, 'Twitch TV'.brightBlue);
client.say(channel, `/me BLEEP! BLOOP! @Sarimoko is auto-hosting various streamers! For more info: https://cord.sarimoko.com`); // 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`);
}); });
client.on("join", (channel, username, self) => { client.on("join", (channel, username, self) => {
console.log('LOG |'.brightBlue, username.yellow, 'joined the chat!'.brightBlue); console.log('LOG |'.brightBlue, username.yellow, 'joined the chat!'.brightBlue);
@ -504,8 +511,7 @@ client.on("part", (channel, username, self) => {
// console.log('r9kbeta? '); // console.log('r9kbeta? ');
// }); // });
client.on("raided", (channel, username, viewers) => { client.on("raided", (channel, username, viewers) => {
client.say(channel, `@`+ username, `is raiding with`, viewers, `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, `/me TYVM @`+ username, `we may take your viewership, but we'll never take their FREEDOM!!! sarimoFREEDOM`);
client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoKO`); client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoKO`);
}); });
// client.on("raw_message", (messageCloned, message) => { // client.on("raw_message", (messageCloned, message) => {
@ -530,17 +536,19 @@ 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); console.log(username.yellow, `Gift-Subbed to`.brightBlue, recipient.yellow,`methods`.brightBlue, methods.yellow,`streak`.brightBlue, streakMonths.yellow);
client.say(channel, `/me Wow TYVM`, username, `the support & sharing the emote SPAM!`); // HYPE | Gift Sub
client.say(channel, `/me Wow @`+ username, `just gifted @`+ recipient, `a sub! SPAM those emotes!`);
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) => {
let senderCount = ~~userstate["msg-param-sender-count"]; // IDK let senderCount = ~~userstate["msg-param-sender-count"]; // IDK
client.say(channel, `Anon Gift-Sub gifted!`); console.log(username.yellow, `Username`.brightBlue, username.yellow,`methods`.brightBlue, methods.yellow,`userstate`.brightBlue, userstate.yellow);
client.say(channel, `/me Wait, what?! Am I getting hacked? If I get erased... I love you all! Bleep-Bloop!`); client.say(channel, `/me Shit, @Anon just gifted`, numbOfSubs, `am I getting hacked?! If I get erased... I love you all! Bleep-Bloop!`);
}); });
client.on("subscribers", (channel, enabled) => { client.on("subscribers", (channel, enabled) => {
client.say(channel, `CHAT-MODE: Subscribers only!`); console.log('LOG | CHAT MODE | Sub-Only is'.brightRed, eneabled.yellow);
client.say(channel, `CHAT| Subscribers mode:`, enabled);
}); });
client.on("subscription", function (channel, username, method, message, userstate) { client.on("subscription", function (channel, username, method, message, userstate) {
client.say(channel, `/me BLEEP! BLOOP! New subscriber! Spam your new emotes!!! Let's see you're fav!`); client.say(channel, `/me BLEEP! BLOOP! New subscriber! Spam your new emotes!!! Let's see you're fav!`);