From 5d67834adf0f14c67f72d6eccb19dd6e626906c4 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 16 Jul 2018 00:51:18 +0800 Subject: [PATCH] add twitch bot client --- bin/dbVersion.json | 3 ++- config/index.js | 4 +++- package.json | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/dbVersion.json b/bin/dbVersion.json index 627f9be..059d488 100644 --- a/bin/dbVersion.json +++ b/bin/dbVersion.json @@ -7,7 +7,8 @@ {"file": "20180706-1.sql", "version": 5}, {"file": "20180710-1.sql", "version": 6}, {"file": "20180711-1.sql", "version": 7}, - {"file": "20180712-1.sql", "version": 8} + {"file": "20180712-1.sql", "version": 8}, + {"file": "20180716-1.sql", "version": 9} ], "test": [] } \ No newline at end of file diff --git a/config/index.js b/config/index.js index 81842ba..d67cff6 100644 --- a/config/index.js +++ b/config/index.js @@ -8,7 +8,9 @@ module.exports = { }, twitch: { clientid: process.env.TWITCH_CLIENT_ID || '', - subsecret: process.env.TWITCH_SUB_SECRET || '' + subsecret: process.env.TWITCH_SUB_SECRET || '', + chat_host: process.env.TWITCH_CHAT_HOST || '', + bot_oauth: process.env.TWITCH_BOT_OAUTH || '' }, google: { apikey: process.env.GOOGLE_API_KEY || '' diff --git a/package.json b/package.json index e2c7bad..7b4450a 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "pg": "^7.4.3", "raw-body": "^2.3.3", "request": "^2.87.0", + "ws": "^5.2.2", "xml2js": "^0.4.19" }, "devDependencies": {