Have you ever felt like your chat is too silent? Like there isn't anything to discuss that haven't been discussed? Well what about you shoot some interesting question from r/AskReddit into the chat. That will surely evoke some kind of response. From your favourite movie quote to the multiverse theory, FromReddit got you covered.
Project is created with:
Head to Reddit's developed applications page and create a new app. Give it a sexy name, select script, and put http:https://localhost
to the redirect url box.
If all done well, you should end up with a created application (as shown in the image below). From there you should take note of two things, client id and client secret. In this case:
CLIENTID = "Gz4oQcPJ3Tj03A"
CLIENTSEC = "qjx4d77aFSgsO7bHKMeOtmq4GP0"
Head over to my go to twitch oauth generator, log in with yours (alternatively your bots) account and authorize. Expected result should look something like this and the part you are interested in is the ACCESS TOKEN
.
FromReddit requires to have all the necessary data to be stated in the conf.ini
file as shown below. Said file can be edited either manually, or using the installer.
[Reddit]
CLIENTID=Gz4oQcPJ3Tj03A
CLIENTSEC=qjx4d77aFSgsO7bHKMeOtmq4GP0
[Twitch]
NICK=FromReddit
PASS=oauth:aBR6kSj2OdxdwR6zcQXlEG6M4ZdNer
CHANNEL=bobross
[Misc]
TIMEOUT=10
This step isn't necessary if using the executable
pip install -r requirements.txt
py FromReddit.py
or run
FromReddit.exe