Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-11 11:06:26 +00:00
parent 520eb1bad3
commit 650cb7989d
1 changed files with 17 additions and 3 deletions

View File

@ -31,6 +31,21 @@ const client = new tmi.Client({
client.connect(); 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) => { client.on('message', (channel, tags, message, self) => {
if(self) return; if(self) return;
const badges = tags.badges || {}; // Scan Badges const badges = tags.badges || {}; // Scan Badges
@ -94,14 +109,13 @@ client.on("clearchat", (channel) => {
client.say(channel, `Chat Rule Reminder`); client.say(channel, `Chat Rule Reminder`);
client.say(channel, `/me 1. Do NOT feed the Trolls!`); client.say(channel, `/me 1. Do NOT feed the Trolls!`);
client.say(channel, `/me 2. Do NOT be a Troll!`); 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 3. Do NOT be another brick in the wall!`);
client.say(channel, `/me 4. Do NOT be another brick in the wall!`);
}); });
client.on("giftpaidupgrade", (channel, username, sender, userstate) => { client.on("giftpaidupgrade", (channel, username, sender, userstate) => {
// Huh? Tier 1 => Tier2 // Huh? Tier 1 => Tier2
}); });
client.on("hosting", (channel, target, viewers) => { 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.on("join", (channel, username, self) => {
// client.say(channel, `/me +1 Chatter! Viewer or Bot...? Time will tell!`); // client.say(channel, `/me +1 Chatter! Viewer or Bot...? Time will tell!`);