Update 'node/autoban.js'

This commit is contained in:
Sarimoko 2022-02-23 07:35:39 +00:00
parent 5127845691
commit 62d8a238f7
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,17 @@ const client = new tmi.Client({
console.log(`Loading... | Chatbot`.black.bgGreen);
client.connect();
client.on("connected", (address, port) => {
console.log('LOG | Connected @'.green, address.yellow, 'on port'.green, port);
});
client.on("connecting", (address, port) => {
console.log('LOG | Connecting @'.green, address.yellow, 'on port'.green, port);
});
client.on("disconnected", (reason) => {
console.log('LOG |'.brightRed, reason.yellow, 'caused a disconnection...'.brightRed);
});
client.on('message', (channel, tags, message, self) => {
//if(botlist) return;
const badges = tags.badges || {}; // Scan Badges