ChangeTip Twitch.tv Bot
Once a user authorizes their Twitch.tv account on ChangeTip, the bot will join their channel and allow tipping in their chat.
!changetip at the beginning of a message, then mention a @username and an amount (or leave out @username to tip the channel owner directly).
!changetip Nice win! Have a $5 donation!
!changetip Give @Kappa a high five for that close match!
Running on your own machine
$ pip install -r requirements.txt
You must set the following environment variables to run the bot:
To get an API key, contact firstname.lastname@example.org
This should be your bot's username on Twitch.tv
Your bot's access token, required to connect to Twitch irc.
You can acquire one easily for development by using the Third Party Twitch Chat Password Generator app
Or you can set up a Twitch app in your account settings and make a request to the following url (with your Twitch app's info in place of the bracketed text)
https://api.twitch.tv/kraken/oauth2/authorize?response_type=token&client_id=[your client ID]&redirect_uri=[your registered redirect URI]&scope=chat_login
For more information read Twitch's authentication documentation.
Once you have this access token it will not expire unless you generate a new access token.