Update 'node/boto.js'

This commit is contained in:
Sarimoko 2022-02-13 14:21:44 +00:00
parent 6e4d6b299a
commit 8255c59f62
1 changed files with 17 additions and 1 deletions

View File

@ -1,4 +1,20 @@
// B O T O // B O T O
// ---
// Color Guid
// red
// console.log('\x1b[31m%s\x1b[0m', 'I am red')
// green
// console.log('\x1b[32m%s\x1b[0m', 'I am green')
// yellow
// console.log('\x1b[33m%s\x1b[0m', 'I am yellow')
// blue
// console.log('\x1b[34m%s\x1b[0m', 'I am blue')
// magenta
// console.log('\x1b[35m%s\x1b[0m', 'I am magenta')
// cyan
// console.log('\x1b[36m%s\x1b[0m', 'I am cyan')
require('dotenv').config(); require('dotenv').config();
const tmi = require('tmi.js'); const tmi = require('tmi.js');
@ -424,7 +440,7 @@ 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.say(channel, `/me BLEEP! BLOOP! @Sarimoko is auto-hosting various streamers! For more info: https://cord.sarimoko.com`);
}); });
client.on("join", (channel, username, self) => { client.on("join", (channel, username, self) => {
console.log('\x1b[36m%s\x1b[0m', 'LOG |', username, 'joined the chat!'); console.log('\x1b[36m%s\x1b[0m', 'LOG |', '\x1b[33m%s\x1b[0m', username, '\x1b[36m%s\x1b[0m', 'joined the chat!');
}); });
client.on("logon", () => { client.on("logon", () => {
console.log('LOG: Logon '); console.log('LOG: Logon ');