From f6db52eca50691257c768a9fd7ba297ae90b56ca Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Wed, 16 Feb 2022 18:11:46 +0000 Subject: [PATCH] Update 'node/autoban.js' --- node/autoban.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/node/autoban.js b/node/autoban.js index 6502772..42cc401 100644 --- a/node/autoban.js +++ b/node/autoban.js @@ -1,6 +1,10 @@ require('dotenv').config(); const tmi = require('tmi.js'); const colors = require('colors'); +const config = require("./banlist"); + +// Define DB pull +const {lurk_bots} = banlist console.log(process.env.API_HOST); @@ -11,14 +15,13 @@ const client = new tmi.Client({ reconnect: true }, identity: { - username: process.env.TTV_BOT_USERNAME, - password: process.env.TTV_BOT_OAUTH + username: process.env.TTV_STREAMER_USERNAME, + password: process.env.TTV_STREAMER_OAUTH }, - channels: [ process.env.TTV_CHANNELS ] + channels: [ process.env.TTV_STREAMER_CHANNEL ] }); client.connect(); -// Define DB pull // Ban function \ No newline at end of file