Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-13 00:30:38 +00:00
parent d2d0164c8a
commit 913715643c
1 changed files with 12 additions and 6 deletions

View File

@ -380,18 +380,23 @@ client.on("clearchat", (channel) => {
}); });
client.on("connected", (address, port) => { client.on("connected", (address, port) => {
// Do your stuff. // Do your stuff.
console.log('Connected ');
}); });
client.on("connecting", (address, port) => { client.on("connecting", (address, port) => {
// Do your stuff. // Do your stuff.
console.log('Connecting ');
}); });
client.on("disconnected", (reason) => { client.on("disconnected", (reason) => {
// Do your stuff. // Do your stuff.
console.log('Dis-Connected ');
}); });
client.on("emoteonly", (channel, enabled) => { client.on("emoteonly", (channel, enabled) => {
// Chatmode // Chatmode
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(obj); console.log(obj);
}); });
client.on("followersonly", (channel, enabled, length) => { client.on("followersonly", (channel, enabled, length) => {
@ -411,6 +416,7 @@ client.on("join", (channel, username, self) => {
}); });
client.on("logon", () => { client.on("logon", () => {
// Do your stuff. // Do your stuff.
console.log('Logon ');
}); });
client.on("message", (channel, userstate, message, self) => { client.on("message", (channel, userstate, message, self) => {
// Don't listen to my own messages.. // Don't listen to my own messages..
@ -448,12 +454,8 @@ client.on("part", (channel, username, self) => {
console.log('-1 IRC Chatter'); 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.say(channel, `/me -1 Chatter! Where's my bounty hunters? Essemble the *air-qoutes* search-party *air-qoutes*`);
}); });
client.on("ping", () => { //client.on("ping", () => {});
// Do your stuff. //client.on("pong", (latency) => {});
});
client.on("pong", (latency) => {
// Do your stuff.
});
client.on("r9kbeta", (channel, enabled) => { client.on("r9kbeta", (channel, enabled) => {
// Do your stuff. // Do your stuff.
}); });
@ -466,6 +468,7 @@ client.on("raw_message", (messageCloned, message) => {
}); });
client.on("reconnect", () => { client.on("reconnect", () => {
// Do your stuff. // Do your stuff.
console.log('Re-Connecting ');
}); });
client.on("resub", function (channel, username, months, message, userstate, methods) { 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, `/me BLEEP! BLOOP! Legend re-sub! Thanks for your continued support!`);
@ -473,12 +476,15 @@ 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 ');
}); });
client.on("serverchange", (channel) => { client.on("serverchange", (channel) => {
// Do your stuff. // Do your stuff.
console.log('Server Change ');
}); });
client.on("slowmode", (channel, enabled, length) => { client.on("slowmode", (channel, enabled, length) => {
// Do your stuff. // Do your stuff.
console.log('CHAT MODE: Slow Mode enabled! ');
}); });
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