From 6b627372d55d85a36dfc6a38802ffa732d5181ca Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Mon, 14 Feb 2022 14:13:54 -0800 Subject: [PATCH] test --- node/boto.js | 13 +------------ node/tmi.js | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 node/tmi.js diff --git a/node/boto.js b/node/boto.js index eb1d182..33a254f 100644 --- a/node/boto.js +++ b/node/boto.js @@ -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(); diff --git a/node/tmi.js b/node/tmi.js new file mode 100644 index 0000000..f679814 --- /dev/null +++ b/node/tmi.js @@ -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 }; \ No newline at end of file