Update 'node/boto.js'
This commit is contained in:
parent
f19be90259
commit
c51f30c39d
91
node/boto.js
91
node/boto.js
|
@ -353,8 +353,7 @@ client.on('message', (channel, tags, message, self) => {
|
||||||
client.on("action", (channel, userstate, message, self) => {
|
client.on("action", (channel, userstate, message, self) => {
|
||||||
// Don't listen to my own messages..
|
// Don't listen to my own messages..
|
||||||
if (self) return;
|
if (self) return;
|
||||||
|
console.log('LOG: Action ');
|
||||||
// Do your stuff.
|
|
||||||
});
|
});
|
||||||
client.on("anongiftpaidupgrade", (channel, username, userstate) => {
|
client.on("anongiftpaidupgrade", (channel, username, userstate) => {
|
||||||
client.whisper(username, `BLEEP! BLOOP! Anon-Sub upgraded!!!`);
|
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..
|
// Don't listen to my own messages..
|
||||||
if (self) return;
|
if (self) return;
|
||||||
// Do your stuff.
|
// Do your stuff.
|
||||||
|
console.log('LOG: Chat');
|
||||||
});
|
});
|
||||||
client.on("cheer", (channel, userstate, message) => {
|
client.on("cheer", (channel, userstate, message) => {
|
||||||
client.say(channel, `/me BLEEP! BLOOP! O'SNAP! Bit hype!!! sarimoBANG`);
|
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.say(channel, `/me 3. Do NOT be another brick in the wall!`);
|
||||||
});
|
});
|
||||||
client.on("connected", (address, port) => {
|
client.on("connected", (address, port) => {
|
||||||
// Do your stuff.
|
console.log('LOG: Connected ');
|
||||||
console.log('Connected ');
|
|
||||||
});
|
});
|
||||||
client.on("connecting", (address, port) => {
|
client.on("connecting", (address, port) => {
|
||||||
// Do your stuff.
|
console.log('LOG: Connecting ');
|
||||||
console.log('Connecting ');
|
|
||||||
});
|
});
|
||||||
client.on("disconnected", (reason) => {
|
client.on("disconnected", (reason) => {
|
||||||
// Do your stuff.
|
console.log('LOG: Dis-Connected ');
|
||||||
console.log('Dis-Connected ');
|
|
||||||
});
|
});
|
||||||
client.on("emoteonly", (channel, enabled) => {
|
client.on("emoteonly", (channel, enabled) => {
|
||||||
// Chatmode
|
|
||||||
console.log('CHAT MODE: Emotes Only ');
|
console.log('CHAT MODE: Emotes Only ');
|
||||||
});
|
});
|
||||||
client.on("emotesets", (sets, obj) => {
|
// client.on("emotesets", (sets, obj) => {
|
||||||
// Here are the emotes I can use:
|
// // Here are the emotes I can use:
|
||||||
console.log('Emote Sets: IDK WHAT TO DO WITH THESE ');
|
// console.log('Emote Sets: IDK WHAT TO DO WITH THESE ');
|
||||||
console.log(obj);
|
// console.log(obj);
|
||||||
});
|
// });
|
||||||
client.on("followersonly", (channel, enabled, length) => {
|
client.on("followersonly", (channel, enabled, length) => {
|
||||||
// Do your stuff.
|
console.log('CHAT MOD: Followers only enabled!');
|
||||||
});
|
});
|
||||||
client.on("giftpaidupgrade", (channel, username, sender, userstate) => {
|
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) => {
|
client.on("hosted", (channel, username, viewers, autohost) => {
|
||||||
// Do your stuff.
|
console.log('LOG: TYVM! For the host!');
|
||||||
});
|
});
|
||||||
client.on("hosting", (channel, target, viewers) => {
|
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.say(channel, `/me BLEEP! BLOOP! @Sarimoko is auto-hosting various streamers! For more info: https://cord.sarimoko.com`);
|
||||||
});
|
});
|
||||||
client.on("join", (channel, username, self) => {
|
client.on("join", (channel, username, self) => {
|
||||||
console.log('+1 IRC Chatter: ');
|
console.log('LOG: +1 IRC Chatter: ');
|
||||||
});
|
});
|
||||||
client.on("logon", () => {
|
client.on("logon", () => {
|
||||||
// Do your stuff.
|
console.log('LOG: Logon ');
|
||||||
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;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
// 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) => {
|
client.on("messagedeleted", (channel, username, deletedMessage, userstate) => {
|
||||||
// Do your stuff.
|
// Do your stuff.
|
||||||
|
console.log('LOG: Msg deleted ');
|
||||||
});
|
});
|
||||||
client.on("mod", (channel, username) => {
|
client.on("mod", (channel, username) => {
|
||||||
// Modded.
|
// Modded.
|
||||||
|
console.log('LOG: Modded ');
|
||||||
});
|
});
|
||||||
client.on("mods", (channel, mods) => {
|
client.on("mods", (channel, mods) => {
|
||||||
// List
|
// List
|
||||||
|
console.log('LOG: Mods ');
|
||||||
});
|
});
|
||||||
client.on("notice", (channel, msgid, message) => {
|
client.on("notice", (channel, msgid, message) => {
|
||||||
// Do your stuff.
|
// Do your stuff.
|
||||||
|
console.log('LOG: Notice ');
|
||||||
});
|
});
|
||||||
client.on("part", (channel, username, self) => {
|
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.say(channel, `/me -1 Chatter! Where's my bounty hunters? Essemble the *air-qoutes* search-party *air-qoutes*`);
|
||||||
});
|
});
|
||||||
//client.on("ping", () => {});
|
//client.on("ping", () => {});
|
||||||
//client.on("pong", (latency) => {});
|
//client.on("pong", (latency) => {});
|
||||||
client.on("r9kbeta", (channel, enabled) => {
|
// client.on("r9kbeta", (channel, enabled) => {
|
||||||
// Do your stuff.
|
// console.log('r9kbeta? ');
|
||||||
});
|
// });
|
||||||
client.on("raided", (channel, username, viewers) => {
|
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, `/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`);
|
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) => {
|
client.on("roomstate", (channel, state) => {
|
||||||
// Do your stuff.
|
// Do your stuff.
|
||||||
console.log('Roomstate ');
|
console.log('LOG: Roomstate ');
|
||||||
});
|
});
|
||||||
client.on("serverchange", (channel) => {
|
client.on("serverchange", (channel) => {
|
||||||
// Do your stuff.
|
// Do your stuff.
|
||||||
console.log('Server Change ');
|
console.log('LOG: Server Change ');
|
||||||
});
|
});
|
||||||
client.on("slowmode", (channel, enabled, length) => {
|
client.on("slowmode", (channel, enabled, length) => {
|
||||||
// Do your stuff.
|
// Do your stuff.
|
||||||
|
|
Loading…
Reference in New Issue