"Oh no I missed that my favorite streamer started their stream now i can't join in with Marbles!"
With this amazing chatbot you can always join in at a game of Marbles without having to miss a game!
Amazing, something you didn't know you desperately needed in your life.
But before you are able to always play Marbles, you have to do a few things:
- If you don't have one already make a Twitch account, or just use the one you already have at the moment.
- Request an oauth code. You need to login, so it can generate the code for you.
- Register an application and request a client-id, so you can interact with Twitch's API.
- Don't forget to download Python to be able to run the program!
- Install the dependencies in requirements.txt with
pip install -r requirements.txt.
For the bot configuration you have to create and .env file in the directory of the project.
Then you put in the following things:
TMI_TOKEN=oauth:
CLIENT_ID=
BOT_NICK=
BOT_PREFIX=!
CHANNEL=
TMI_TOKEN is the oauth token you generated beforehand.
CLIENT_ID can be found on the application page after you registered one.
BOT_NICK is the username of the account you logged into when registering your application.
BOT_PREFIX is the prefix that is used when in future instances there will be commands added to this bot.
CHANNEL is the channel that you want to connect to with the bot.
Now you're all set!
The only thing you have to do is run the bot
python bot.py