Update 'node/boto.js'
This commit is contained in:
parent
cfd9fabcf5
commit
ce7bbfe3ee
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const tmi = require('tmi.js');
|
const tmi = require('tmi.js');
|
||||||
|
const rp = require('request-promise'); // For RNG
|
||||||
|
const colors = require('colors');
|
||||||
|
|
||||||
console.log(process.env.API_HOST);
|
console.log(process.env.API_HOST);
|
||||||
|
|
||||||
|
@ -36,8 +38,6 @@ const client = new tmi.Client({
|
||||||
client.connect();
|
client.connect();
|
||||||
|
|
||||||
// RNG User
|
// RNG User
|
||||||
const rp = require('request-promise');
|
|
||||||
|
|
||||||
function getChatters(channelName, _attemptCount = 0) {
|
function getChatters(channelName, _attemptCount = 0) {
|
||||||
return rp({
|
return rp({
|
||||||
uri: `https://tmi.twitch.tv/group/user/sarimoko/chatters`,
|
uri: `https://tmi.twitch.tv/group/user/sarimoko/chatters`,
|
||||||
|
@ -440,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, '\x1b[36m%s\x1b[0m', 'joined the chat!');
|
console.log('LOG |'.brightBlue, username.yellow, 'joined the chat!'.brightBlue);
|
||||||
});
|
});
|
||||||
client.on("logon", () => {
|
client.on("logon", () => {
|
||||||
console.log('LOG: Logon ');
|
console.log('LOG: Logon ');
|
||||||
|
|
Loading…
Reference in New Issue