Update 'node/boto.js'
This commit is contained in:
parent
520eb1bad3
commit
650cb7989d
20
node/boto.js
20
node/boto.js
|
@ -31,6 +31,21 @@ const client = new tmi.Client({
|
|||
|
||||
client.connect();
|
||||
|
||||
// ==================================
|
||||
// START | AUTO/TIMED
|
||||
client.on('connected', (address, port) => {
|
||||
client.action('Sariboto', 'by Sarimoko')
|
||||
setInterval(() => {
|
||||
messageInterval();
|
||||
}, 300);
|
||||
});
|
||||
|
||||
function messageInterval() {
|
||||
client.say(" Timed message every 300 seconds");
|
||||
}
|
||||
// END | AUTO/TIMED
|
||||
// ==================================
|
||||
|
||||
client.on('message', (channel, tags, message, self) => {
|
||||
if(self) return;
|
||||
const badges = tags.badges || {}; // Scan Badges
|
||||
|
@ -94,14 +109,13 @@ client.on("clearchat", (channel) => {
|
|||
client.say(channel, `Chat Rule Reminder`);
|
||||
client.say(channel, `/me 1. Do NOT feed the Trolls!`);
|
||||
client.say(channel, `/me 2. Do NOT be a Troll!`);
|
||||
client.say(channel, `/me 3. #NSFQ in cord.sarimoko.com ONLY!`);
|
||||
client.say(channel, `/me 4. Do NOT be another brick in the wall!`);
|
||||
client.say(channel, `/me 3. Do NOT be another brick in the wall!`);
|
||||
});
|
||||
client.on("giftpaidupgrade", (channel, username, sender, userstate) => {
|
||||
// Huh? Tier 1 => Tier2
|
||||
});
|
||||
client.on("hosting", (channel, target, viewers) => {
|
||||
client.say(channel, `/me BLEEP! BLOOP! @Sarimoko got hosted! Do something entertaining!`);
|
||||
// client.say(channel, `/me BLEEP! BLOOP! @Sarimoko got hosted! Do something entertaining!`);
|
||||
});
|
||||
client.on("join", (channel, username, self) => {
|
||||
// client.say(channel, `/me +1 Chatter! Viewer or Bot...? Time will tell!`);
|
||||
|
|
Loading…
Reference in New Issue