Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-10 01:24:35 +00:00
parent c1d5af58ee
commit 2d397ffba6
1 changed files with 19 additions and 8 deletions

View File

@ -10,11 +10,9 @@ const client = new tmi.Client({
reconnect: true reconnect: true
}, },
identity: { identity: {
//username: 'sariboto',
username: process.env.TTV_BOT_USERNAME, username: process.env.TTV_BOT_USERNAME,
password: process.env.TTV_BOT_OAUTH password: process.env.TTV_BOT_OAUTH
}, },
//channels: [ 'sarimoko' ]
channels: [ process.env.TTV_CHANNELS ] channels: [ process.env.TTV_CHANNELS ]
}); });
@ -27,7 +25,10 @@ client.on('message', (channel, tags, message, self) => {
const isMod = badges.moderator; const isMod = badges.moderator;
const isModUp = isBroadcaster || isMod; const isModUp = isBroadcaster || isMod;
}); });
// TODO:
// + Add Cooldowns
// + Add Mod vs Streamer vs Viewer vs Sub control
// + Turn BOTO into join userchannel_db & make botoff to rm_userchannel_db
client.on('message', (channel, tags, message, self) => { client.on('message', (channel, tags, message, self) => {
if(self || !message.startsWith('!')) return; if(self || !message.startsWith('!')) return;
@ -39,11 +40,13 @@ client.on('message', (channel, tags, message, self) => {
// B E T A // B E T A
// ================================== // ==================================
// The Boto // The Boto
// ----------------------------------
if(command === 'boto' || command === 'sariboto' || command === 'sari-boto') { if(command === 'boto' || command === 'sariboto' || command === 'sari-boto') {
client.say(channel, `/me Bleep! Bloop! Successfully connected to Twitch!`); client.say(channel, `/me Bleep! Bloop! Successfully connected to Twitch!`);
client.say(channel, `!kappagen imGlitch EarthDay imGlitch EarthDay imGlitch`); client.say(channel, `!kappagen imGlitch EarthDay imGlitch EarthDay imGlitch`);
} }
// The Echo // The Echo
// ----------------------------------
else if(command === 'echo') { else if(command === 'echo') {
client.say(channel, `/me Off in the distance @${tags.username} screams...`); client.say(channel, `/me Off in the distance @${tags.username} screams...`);
client.say(channel, `" ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} " can be heard to all those around!`); client.say(channel, `" ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} " can be heard to all those around!`);
@ -52,11 +55,13 @@ client.on('message', (channel, tags, message, self) => {
// T H E S H O W // T H E S H O W
// ================================== // ==================================
// Being Raided // Being Raided
// ----------------------------------
if(command === 'raid' || command === 'raided') { if(command === 'raid' || command === 'raided') {
client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM`); client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM`);
client.say(channel, `/me Did @${tags.username} say RAID!?! I believe ${args.join(' ')}, was mentioned as well!`); client.say(channel, `/me Did @${tags.username} say RAID!?! I believe ${args.join(' ')}, was mentioned as well!`);
} }
// Raiding Someone // Raiding Someone
// ----------------------------------
if(command === 'raidcall' || command === 'spam' || command === 'spamwars') { if(command === 'raidcall' || command === 'spam' || command === 'spamwars') {
client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM`); client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM`);
client.say(channel, `/me Thanks everyone for watching!!! PREPARE TO SPAM!`); client.say(channel, `/me Thanks everyone for watching!!! PREPARE TO SPAM!`);
@ -67,17 +72,20 @@ client.on('message', (channel, tags, message, self) => {
// K A P P A // K A P P A
// ================================== // ==================================
// FX | Hi // FX | Hi
// ----------------------------------
if(command === 'hi' || command === 'hello' || command === 'welcome' || command === 'greeting' || command === 'greetings') { if(command === 'hi' || command === 'hello' || command === 'welcome' || command === 'greeting' || command === 'greetings') {
client.say(channel, `!kappagen HeyGuys bleedPurple HeyGuys bleedPurple HeyGuys`); client.say(channel, `!kappagen HeyGuys bleedPurple HeyGuys bleedPurple HeyGuys`);
client.say(channel, `/me Hi Hello Howdy Hola こんにちは Oi 你好 여보세요 Здравствуйте Bonjour Hej Hiya Heyo Yo`); client.say(channel, `/me Hi Hello Howdy Hola こんにちは Oi 你好 여보세요 Здравствуйте Bonjour Hej Hiya Heyo Yo`);
} }
// FX | Hi // FX | Hi
// ----------------------------------
if(command === 'sup' || command === 'whatsup' || command === 'sups' || command === 'wazzup' || command === 'soup' || command === 'soups') { if(command === 'sup' || command === 'whatsup' || command === 'sups' || command === 'wazzup' || command === 'soup' || command === 'soups') {
client.say(channel, `!kappagen sarimoTRIP sarimoSOUP sarimoTRIP sarimoSOUP sarimoTRIP sarimoSOUP `); client.say(channel, `!kappagen sarimoTRIP sarimoSOUP sarimoTRIP sarimoSOUP sarimoTRIP sarimoSOUP `);
client.say(channel, `/me Yo @${tags.username}, how goes it?`); client.say(channel, `/me Yo @${tags.username}, how goes it?`);
} }
// FX | Salt // FX | Salt
// ----------------------------------
if(command === 'salt' || command === 'yoho' || command === 'rage' || command === 'rip' || command === 'sassy' || command === 'salty' || command === 'bitter') { if(command === 'salt' || command === 'yoho' || command === 'rage' || command === 'rip' || command === 'sassy' || command === 'salty' || command === 'bitter') {
client.say(channel, `!kappagen PJSalt PanicVis PJSalt WutFace PJSalt PunOko PJSalt BabyRage PJSalt`); client.say(channel, `!kappagen PJSalt PanicVis PJSalt WutFace PJSalt PunOko PJSalt BabyRage PJSalt`);
} }
@ -86,12 +94,15 @@ client.on('message', (channel, tags, message, self) => {
// G E N E R A L // G E N E R A L
// ================================== // ==================================
// Uptime // Uptime
if(commandName === 'uptime') { // ----------------------------------
let timestamp = new Date(body.stream.created_at).getTime(); // if(commandName === 'uptime') {
uptime = countdown(timestamp, Date.now(), 158); // let timestamp = new Date(body.stream.created_at).getTime();
reply(uptime); // uptime = countdown(timestamp, Date.now(), 158);
} // reply(uptime);
//}
// The 2Pac Timezone // The 2Pac Timezone
// ----------------------------------
else if(command === '2pac' || command === 'pst' || command === 'timezone') { else if(command === '2pac' || command === 'pst' || command === 'timezone') {
client.say(channel, `/me Off in the distance @${tags.username} screams...`); client.say(channel, `/me Off in the distance @${tags.username} screams...`);
client.say(channel, `" ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} " can be heard to all those around!`); client.say(channel, `" ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} ${args.join(' ')} " can be heard to all those around!`);