cigargary-bot
October 1, 2021 ยท View on GitHub
This is a bot created for cigargary's twitch
Please log ideas and problems in the issues pages
Plan
- Write tests
- Twitch bot that responds to commands like !project, !devops
- Link twitch to discord to tell discord when cigargary is live?
Getting started
- Set up
pre-commitpip install pre-commit pre-commit install - Set up
pipenvpip install pipenv pipenv lock # enter the shell to run code pipenv shell # or use pipenv run pipenv run blah - Set up a twitch bot token (see below)
- Run the bot
# from root of the project directory pipenv run start
[HOSTING]
The bot is hosted on Heroku. We are yet to write documentation about this.
[TWITCH] How to generate a token for the twitch bot
Documentation on twitchio library: https://pypi.org/project/twitchio/
- Logout of current twitch account
- Create a bot twitch account
- Create a token: https://twitchtokengenerator.com/
- Add tokens in an .env file
# .env ACCESS_TOKEN=oauth:<ACCESS TOKEN> CLIENT_ID= BOT_NICK=<bot's nickname> BOT_PREFIX=! # the prefix, normally '!' CHANNELS=<channels to join> FRESH_TOKEN=
[DISCORD] Setting up discord bot
Resources:
- Create a bot account and get tokens (see resouces above) TODO: write 1. Create a bot account and get tokens (see resouces above) TODO: write1. Create a bot account and get tokens (see resouces above) TODO: write this
- Add below to .env file
DISCORD_TOKEN= DISCORD_GUILD=cigargary - TODO: Consoldate this with twitch .env files settings