Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-13 00:13:37 +00:00
parent b8ebbd487d
commit b35dbaf37c
1 changed files with 111 additions and 3 deletions

View File

@ -349,6 +349,13 @@ client.on('message', (channel, tags, message, self) => {
// ==================================
// TO-DO: Add Follower API
// https://api.twitch.tv/kraken/channels/MY_ID/follows?api_version=5&client_id=MY_CLIENT_ID&limit=1
client.on("action", (channel, userstate, message, self) => {
// Don't listen to my own messages..
if (self) return;
// Do your stuff.
});
client.on("anongiftpaidupgrade", (channel, username, userstate) => {
client.whisper(username, `BLEEP! BLOOP! Anon-Sub upgraded!!!`);
});
@ -356,6 +363,11 @@ client.on("ban", (channel, username, reason, userstate) => {
client.say(channel, `/me BYE FELICIA!!! Critical hit from the MODs Ban-Hammer attack!`);
client.say(channel, `!kappagen BOP BOP BOP `);
});
client.on("chat", (channel, userstate, message, self) => {
// Don't listen to my own messages..
if (self) return;
// Do your stuff.
});
client.on("cheer", (channel, userstate, message) => {
client.say(channel, `/me BLEEP! BLOOP! O'SNAP! Bit hype!!! sarimoBANG`);
client.say(channel, `!kappagen sarimoHYPE sarimoBITS`);
@ -366,23 +378,108 @@ client.on("clearchat", (channel) => {
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) => {
// Do your stuff.
});
client.on("connecting", (address, port) => {
// Do your stuff.
});
client.on("disconnected", (reason) => {
// Do your stuff.
});
client.on("emoteonly", (channel, enabled) => {
// Chatmode
});
client.on("emotesets", (sets, obj) => {
// Here are the emotes I can use:
console.log(obj);
});
client.on("followersonly", (channel, enabled, length) => {
// Do your stuff.
});
client.on("giftpaidupgrade", (channel, username, sender, userstate) => {
// Huh? Tier 1 => Tier2
});
client.on("hosted", (channel, username, viewers, autohost) => {
// Do your stuff.
});
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: ');
});
client.on("logon", () => {
// Do your stuff.
});
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.
});
client.on("mod", (channel, username) => {
// Modded.
});
client.on("mods", (channel, mods) => {
// List
});
client.on("notice", (channel, msgid, message) => {
// Do your stuff.
});
client.on("part", (channel, username, self) => {
console.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", () => {
// Do your stuff.
});
client.on("pong", (latency) => {
// Do your stuff.
});
client.on("r9kbeta", (channel, enabled) => {
// Do your stuff.
});
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`);
});
client.on("raw_message", (messageCloned, message) => {
console.log(message.raw);
});
client.on("reconnect", () => {
// Do your stuff.
});
client.on("resub", function (channel, username, months, message, userstate, methods) {
client.say(channel, `/me BLEEP! BLOOP! Legend re-sub! Thanks for your continued support!`);
client.say(channel, `!kappagen sarimoHYPE sarimoKO`);
});
client.on("roomstate", (channel, state) => {
// Do your stuff.
});
client.on("serverchange", (channel) => {
// Do your stuff.
});
client.on("slowmode", (channel, enabled, length) => {
// Do your stuff.
});
client.on("subgift", (channel, username, streakMonths, recipient, methods, userstate) => {
let senderCount = ~~userstate["msg-param-sender-count"]; // IDK
client.say(channel, `/me Thank you for supporting The Sarimoko Show with Gift-Subs!`);
@ -391,14 +488,25 @@ client.on("submysterygift", (channel, username, numbOfSubs, methods, userstate)
let senderCount = ~~userstate["msg-param-sender-count"]; // IDK
client.say(channel, `/me BLEEP! BLOOP! Am I getting hacked? Anon just Gift-Subbed! If I get erased... I love you all!`);
});
client.on("resub", function (channel, username, months, message, userstate, methods) {
client.say(channel, `/me BLEEP! BLOOP! Legend re-sub! Thanks for your continued support!`);
client.say(channel, `!kappagen sarimoHYPE sarimoKO`);
client.on("subscribers", (channel, enabled) => {
// Chatmode
});
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, `!kappagen sarimoKO sarimoNERD`);
});
client.on("timeout", (channel, username, reason, duration, userstate) => {
// Do your stuff.
});
client.on("unhost", (channel, viewers) => {
// Do your stuff.
});
client.on("unmod", (channel, username) => {
// Do your stuff.
});
client.on("vips", (channel, vips) => {
// Do your stuff.
});
client.on("whisper", (from, userstate, message, self) => {
if (self) return;
client.say(channel, `/me Bleep! Bloop! Sariboto's Inbox (+1): SEXT Message Recieved!`);