config.ini contains all settings
GUILD_ID
Server ID that commands should be limited to. If this is left empty the bot registers them as global commands, which work everywhere (including DMs) and take a lot longer to propagate. Set this to your own test server during development.
Discord have a decent help article to help you find these.
CLIENT_ID
Your bot user's Client ID. Currently unused.
TOKEN
Your bot's authentication token. If you're not sure how to get this, you can learn how to set up a bot account here
BIRTHDAYS_CHANNEL_ID
ID of the channel in which the bot will announce birthdays.
KEY
Your OpenAI API key
Python 3
Install dependencies from requirements.txt
pip install -r requirements.txt
run main.py
python3 main.py
The following are some resources that might come in handy if you want to tinker with making the bot do something useful:
- https://github.com/ValvePython/dota2
- http://steamwebapi.azurewebsites.net/
- https://pypi.org/project/stratz/
- https://pypi.org/project/pyopendota/
- https://github.com/mdiller/MangoByte
Yoinked parts of the OverthrowCourage command from the courage command in MangoByte with some modifications to prevent having to call their API for hero/item images.