This commit is contained in:
Sarimoko 2022-02-14 14:13:54 -08:00
parent cf8b56afd0
commit 6b627372d5
2 changed files with 16 additions and 12 deletions

View File

@ -4,18 +4,7 @@ const colors = require('colors');
console.log(process.env.API_HOST);
const client = new tmi.Client({
options: { debug: true },
connection: {
secure: true,
reconnect: true
},
identity: {
username: process.env.TTV_BOT_USERNAME,
password: process.env.TTV_BOT_OAUTH
},
channels: [ process.env.TTV_CHANNELS ]
});
var tmi_connect = require('tmi.js');
client.connect();

15
node/tmi.js Normal file
View File

@ -0,0 +1,15 @@
// JavaScript Document
const client = new tmi.Client({
options: { debug: true },
connection: {
secure: true,
reconnect: true
},
identity: {
username: process.env.TTV_BOT_USERNAME,
password: process.env.TTV_BOT_OAUTH
},
channels: [ process.env.TTV_CHANNELS ]
});
module.exports = { tmi_connect };