Simple script, that help you update your game and status w/o going to twitch dashboard
-
First of all, you will create your application. Go to dev.twitch.tv and create one. If you going to use tokengen (recomended) - set OAuth Redirect URL to
https://twitchapps.com/tokengen/
. In other cases -http://localhost
-
Now you need get OAuth token, i recommend you to use tokengen. As
scopes
usechannel_read channel_editor
. In other cases, you can use The official twitch dev docs. -
Test your
client_id
andoauth_token
using try_config.py. Set the variables and run script. -
Edit .twitch.cfg and copy them to your homedir and python settings dir, if needed. My directory with python settings is
D:\WinPython\settings
. For homedir in windows type%userprofile%
to windows explorer. For more correct homedir finding and testing, run your python in command line and type these, the output will be your homedir for running python scripts:
import os
print(os.path.expanduser('~'))
-
Edit dota2.bat for automatic changing game and description while running game script. Debug it with cmd.
-
Happy Streaming.