Update 'node/boto.js'
This commit is contained in:
parent
e86e8e26da
commit
4c20985d31
16
node/boto.js
16
node/boto.js
|
@ -1,5 +1,4 @@
|
|||
// B O T O
|
||||
|
||||
require('dotenv').config();
|
||||
const tmi = require('tmi.js');
|
||||
|
||||
|
@ -81,6 +80,7 @@ client.on('message', (channel, tags, message, self) => {
|
|||
const command = args.shift().toLowerCase(); // !COMMAND => command
|
||||
|
||||
// CMD | CHAT COMMANDS | Start
|
||||
// CMD | RNGUser
|
||||
if(command === 'rnguser') {
|
||||
// Get a random user but skip the user requesting a random user
|
||||
getRandomChatter(channel, { skipList: [ tags.username ] })
|
||||
|
@ -112,8 +112,8 @@ client.on('message', (channel, tags, message, self) => {
|
|||
// CMD | Dice Roll
|
||||
if(command === 'dice' ||
|
||||
command === 'roll') {
|
||||
const result = Math.floor(Math.random() * 6) + 1;
|
||||
client.say(channel, `/me RNGesus has rolled @${tags.username} a ${result}!`);
|
||||
const result = Math.floor(Math.random() * 6) + 1;
|
||||
client.say(channel, `/me RNGesus has rolled @${tags.username} a ${result}!`);
|
||||
}
|
||||
// CMD | Dojo
|
||||
if(command === 'dojo' ||
|
||||
|
@ -403,12 +403,13 @@ client.on("giftpaidupgrade", (channel, username, sender, userstate) => {
|
|||
});
|
||||
client.on("hosted", (channel, username, viewers, autohost) => {
|
||||
console.log('LOG: TYVM! For the host!');
|
||||
client.say(channel, `/me BLEEP! BLOOP! @Sarimoko is auto-hosting various streamers! For more info: https://cord.sarimoko.com`);
|
||||
});
|
||||
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('LOG: +1 IRC Chatter: ');
|
||||
console.log('LOG: +1 IRC Chatter ');
|
||||
});
|
||||
client.on("logon", () => {
|
||||
console.log('LOG: Logon ');
|
||||
|
@ -434,7 +435,6 @@ client.on("logon", () => {
|
|||
// }
|
||||
// });
|
||||
client.on("messagedeleted", (channel, username, deletedMessage, userstate) => {
|
||||
// Do your stuff.
|
||||
console.log('LOG: Msg deleted ');
|
||||
});
|
||||
client.on("mod", (channel, username) => {
|
||||
|
@ -477,12 +477,11 @@ client.on("resub", function (channel, username, months, message, userstate, meth
|
|||
// console.log('LOG: Roomstate ');
|
||||
// });
|
||||
client.on("serverchange", (channel) => {
|
||||
// Do your stuff.
|
||||
console.log('LOG: Server Change ');
|
||||
});
|
||||
client.on("slowmode", (channel, enabled, length) => {
|
||||
// Do your stuff.
|
||||
console.log('CHAT MODE: Slow Mode enabled! ');
|
||||
client.say(channel, `CHAT-MODE: Slow`);
|
||||
});
|
||||
client.on("subgift", (channel, username, streakMonths, recipient, methods, userstate) => {
|
||||
let senderCount = ~~userstate["msg-param-sender-count"]; // IDK
|
||||
|
@ -495,8 +494,7 @@ client.on("submysterygift", (channel, username, numbOfSubs, methods, userstate)
|
|||
client.say(channel, `/me Wait, what?! Am I getting hacked? If I get erased... I love you all! Bleep-Bloop!`);
|
||||
});
|
||||
client.on("subscribers", (channel, enabled) => {
|
||||
// Chatmode
|
||||
client.say(channel, `CHAT MODE: Subscribers only!`);
|
||||
client.say(channel, `CHAT-MODE: Subscribers only!`);
|
||||
});
|
||||
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!`);
|
||||
|
|
Loading…
Reference in New Issue