Go to file
2018-02-13 13:16:30 +08:00
config update 2018-02-13 00:34:26 +08:00
libs update botClient 2018-02-13 13:16:30 +08:00
route first 2018-02-12 23:08:42 +08:00
schema add db schema 2018-02-13 11:37:39 +08:00
views first 2018-02-12 23:08:42 +08:00
.gitignore first 2018-02-12 23:08:42 +08:00
app.js first 2018-02-12 23:08:42 +08:00
index.js update botClient 2018-02-13 13:16:30 +08:00
package-lock.json first 2018-02-12 23:08:42 +08:00
package.json update 2018-02-13 00:34:26 +08:00
README.md update botClient 2018-02-13 13:16:30 +08:00

MTFoS Bot

setup

安裝依賴套件

$ npm install

啟動伺服器

$ DEBUG=* node index.js

usage

https://dev.twitch.tv/ 申請 Twitch APP
在專案根目錄建立 .env 設定檔案

CLIENT_ID=
SECRET=
REDIRECT_URI=
REFRESH_TOKEN=

依序填入設定內容後啟動伺服器機器人就可以運作

取得refresh_token 啟動伺服器後進入 http://localhost:10230/chat_login 手動授權後即可取得