About twitch IRC chat Offical DOCS
About IRC
twitch.tv
accountdocker
anddocker-compose
- do not use port
80(nginx), 3000(node, expree), 28018(mongo), 8000(python)
-
you dont need to register "dev.twitch.tv".
-
go >> https://twitchapps.com/tmi/ and get OAuth Token
-
git clone https://github.com/Nuung/twitch-chat-raffle.git
andcd twitch-chat-raffle
-
go
./crawler/mongo.py - def db_migarte(self)
and change (line 37, 38, 39, 43, 44)"nick_name": "qlgks1", "oauth_token": "oauth:xtft5hce1muhkjhyx01oeqa1td6acc", "channel_name": "aba4647",
-
go
./app/.env
and changePAGE_TITLE
value to what you want -
finally, go
./docker
and run script belowsource docker-start.sh
and if you use
docker desktop
, you can see the container list below
you can see the video guide this youtube page https://youtu.be/A73ys0J880g
-
you can change config value, just click
Setting
button and change what you want
-
๐ด๐ด checkout ๐ด๐ด, before change Setting(config) value, you have to turn off the crawling by clik
On
toggle button -
if you click the user list area, you can see what user chated
-
you want to do raffle, just clikc
Raffle
button
if you click the
OK
button, message database(collection in mongodb namedchat_msg_log
) will be initialize
and save the result (user information) intwitch_raffle_result
collection in mongodb
or if you click theCancel
, nothing happen
- you can use mongodb AUTH mode, checkout files below
/mongodb/mongodb.conf
/crawler/.env
/crawler/mongodb.py
/app/.env
/app/routes/index.js
- change mongodb values and re-build the image and docker-compose
- If you want to change page logo, just change the file below
/app/public/images/logo.png
- This task will be applied in real time by nginx. just refresh page.
- you can logs
crawler, mongodb, nginx
(seedocker-compose
file's volume)
/crawler/logs
/mongodb/log
/nginx/log
- I used express ejs view engine with vanilla-javascript and ajax(jquery) by signle page
index.ejs
- And I used just on routes
index.js
. Change every-thing what you want
- node(expree), python3(IRC crawling), mongodb, nginx
- ๊ฐ๋ฐฑ์7ํธ (not me)