Update 'node/boto.js'
This commit is contained in:
parent
dd6eabc3e7
commit
2a35f5f701
|
@ -25,7 +25,7 @@ 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/${channelName}/chatters`,
|
uri: `https://tmi.twitch.tv/group/user/sarimoko/chatters`,
|
||||||
json: true
|
json: true
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
@ -66,7 +66,7 @@ function getRandomChatter(channelName, opts = {}) {
|
||||||
} // RNG END
|
} // RNG END
|
||||||
|
|
||||||
// SCAN MSG | START
|
// SCAN MSG | START
|
||||||
client.on('message', (channel, userstate, 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
|
||||||
const isBroadcaster = badges.broadcaster; // Define Streamer
|
const isBroadcaster = badges.broadcaster; // Define Streamer
|
||||||
|
|
Loading…
Reference in New Issue