25 lines
442 B
Markdown
25 lines
442 B
Markdown
|
# 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 手動授權後即可取得
|