Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-13 00:43:41 +00:00
parent f19be90259
commit c51f30c39d
1 changed files with 45 additions and 46 deletions

View File

@ -353,8 +353,7 @@ client.on('message', (channel, tags, message, self) => {
client.on("action", (channel, userstate, message, self) => {
// Don't listen to my own messages..
if (self) return;
// Do your stuff.
console.log('LOG: Action ');
});
client.on("anongiftpaidupgrade", (channel, username, userstate) => {
client.whisper(username, `BLEEP! BLOOP! Anon-Sub upgraded!!!`);
@ -367,6 +366,7 @@ client.on("chat", (channel, userstate, message, self) => {
// Don't listen to my own messages..
if (self) return;
// Do your stuff.
console.log('LOG: Chat');
});
client.on("cheer", (channel, userstate, message) => {
client.say(channel, `/me BLEEP! BLOOP! O'SNAP! Bit hype!!! sarimoBANG`);
@ -379,86 +379,85 @@ client.on("clearchat", (channel) => {
client.say(channel, `/me 3. Do NOT be another brick in the wall!`);
});
client.on("connected", (address, port) => {
// Do your stuff.
console.log('Connected ');
console.log('LOG: Connected ');
});
client.on("connecting", (address, port) => {
// Do your stuff.
console.log('Connecting ');
console.log('LOG: Connecting ');
});
client.on("disconnected", (reason) => {
// Do your stuff.
console.log('Dis-Connected ');
console.log('LOG: Dis-Connected ');
});
client.on("emoteonly", (channel, enabled) => {
// Chatmode
console.log('CHAT MODE: Emotes Only ');
});
client.on("emotesets", (sets, obj) => {
// Here are the emotes I can use:
console.log('Emote Sets: IDK WHAT TO DO WITH THESE ');
console.log(obj);
});
// client.on("emotesets", (sets, obj) => {
// // Here are the emotes I can use:
// console.log('Emote Sets: IDK WHAT TO DO WITH THESE ');
// console.log(obj);
// });
client.on("followersonly", (channel, enabled, length) => {
// Do your stuff.
console.log('CHAT MOD: Followers only enabled!');
});
client.on("giftpaidupgrade", (channel, username, sender, userstate) => {
// Huh? Tier 1 => Tier2
console.log('LOG: Gift-Sub UPGRADED to a real full blown sub! ');
});
client.on("hosted", (channel, username, viewers, autohost) => {
// Do your stuff.
console.log('LOG: TYVM! For the host!');
});
client.on("hosting", (channel, target, viewers) => {
client.say(channel, `/me BLEEP! BLOOP! @Sarimoko is auto-hosting various streamers! For more info: https://cord.sarimoko.com`);
});
client.on("join", (channel, username, self) => {
console.log('+1 IRC Chatter: ');
console.log('LOG: +1 IRC Chatter: ');
});
client.on("logon", () => {
// Do your stuff.
console.log('Logon ');
});
client.on("message", (channel, userstate, message, self) => {
// Don't listen to my own messages..
if (self) return;
// Handle different message types..
switch(userstate["message-type"]) {
case "action":
// This is an action message..
break;
case "chat":
// This is a chat message..
break;
case "whisper":
// This is a whisper..
break;
default:
// Something else ?
break;
}
console.log('LOG: Logon ');
});
// client.on("message", (channel, userstate, message, self) => {
// // Don't listen to my own messages..
// if (self) return;
//
// // Handle different message types..
// switch(userstate["message-type"]) {
// case "action":
// // This is an action message..
// break;
// case "chat":
// // This is a chat message..
// break;
// case "whisper":
// // This is a whisper..
// break;
// default:
// // Something else ?
// break;
// }
// });
client.on("messagedeleted", (channel, username, deletedMessage, userstate) => {
// Do your stuff.
console.log('LOG: Msg deleted ');
});
client.on("mod", (channel, username) => {
// Modded.
console.log('LOG: Modded ');
});
client.on("mods", (channel, mods) => {
// List
console.log('LOG: Mods ');
});
client.on("notice", (channel, msgid, message) => {
// Do your stuff.
console.log('LOG: Notice ');
});
client.on("part", (channel, username, self) => {
console.log('-1 IRC Chatter');
console.log('LOG: -1 IRC Chatter');
// client.say(channel, `/me -1 Chatter! Where's my bounty hunters? Essemble the *air-qoutes* search-party *air-qoutes*`);
});
//client.on("ping", () => {});
//client.on("pong", (latency) => {});
client.on("r9kbeta", (channel, enabled) => {
// Do your stuff.
});
// client.on("r9kbeta", (channel, enabled) => {
// console.log('r9kbeta? ');
// });
client.on("raided", (channel, username, viewers) => {
client.say(channel, `/me Welcome raiders!!! We may take your viewership, but we'll never take your FREEDOM!!!`);
client.say(channel, `!kappagen sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM sarimoRAID sarimoFREEDOM`);
@ -476,11 +475,11 @@ client.on("resub", function (channel, username, months, message, userstate, meth
});
client.on("roomstate", (channel, state) => {
// Do your stuff.
console.log('Roomstate ');
console.log('LOG: Roomstate ');
});
client.on("serverchange", (channel) => {
// Do your stuff.
console.log('Server Change ');
console.log('LOG: Server Change ');
});
client.on("slowmode", (channel, enabled, length) => {
// Do your stuff.