這是一個方便Twtich實況主顯示聊天室的工具
利用IRC通訊協定連接聊天室 Twitch IRC
目前的功能有:
- 顯示聊天文字
- 客製化暱稱
- 追蹤者頭像、主播者頭像
環境設定:
#安裝教學
- Install Python 2.7
(1) go to python website, download python2.7.11 for your system and install it.
(2) Add python path to Environment Variables. You can visit this to get more infomation.
(3) Type "python" in your command window, and you should see the version infomation.
- Install Tornado
(1) Open cmd and cd to "C:\Python27\Scripts". (May be different if you choose custom path to install python)
(2) Enter "pip install Tornado".
- Setting Project
(1) Download our code at GitHub
(2) Click "Download ZIP", download and unzip it.
(3) Visit Twitch Chat OAuth Password Generator, generate a password and copy it.
(4) Create a file "start.bat" in the folder twitch-master, and paste the code bellow.
python main.py [YourTwitchName] [Password] [ChatRoom]
where YourTwitchName is your TwitchID, and Password is the string startwith "oauth", ChatRoom is the room you want to show.
example:python oscar60310 oauth:*** oscar60310
will use ID oscar60310 join myself chatroom.
(5) Open your OBS or other stream software, create a new CLR Browser.
(6) URL enter "D:\download\twitch-master\1.html" (the position of 1.html), and ckick OK.
(7) Double ckicking the start.bat file you created, and you should see the message below.
(8) Click "Preview" on OBS, and you will see join message on your OBS window.
Now, you can get the Chatroom on your stream.
- Custom nick
(1) Open setting/nick.txt
(2) Add "TwichID,nick" below the text,one line for one user.
(3) Restart server or type "nick load" to reload the nick list. - Custom Icon
(1) Your can replace the file "following.png" and "owner.png" for the icon to follower and owner. - Command
(1) stop - stop the server.
(2) nick load - reload the nick.txt file.
(3) follow load - update the followers list.
(4) ping - ping the Twitch server.
#使用規定 Notices
您可以使用這些程式在您的實況頁面,可以的話在說明頁面加上我們的連結
https://github.com/oscar60310/twitch
You can use this code on your streams, just leave a credit on your page.