/TBN-Bot

Primary LanguagePythonMIT LicenseMIT

Configuration

config.ini contains all settings

[discord]

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.

[openai]

KEY
Your OpenAI API key

Installation

Python 3

Install dependencies from requirements.txt

pip install -r requirements.txt  

run main.py

python3 main.py

Resources

The following are some resources that might come in handy if you want to tinker with making the bot do something useful:

  1. https://github.com/ValvePython/dota2
  2. http://steamwebapi.azurewebsites.net/
  3. https://pypi.org/project/stratz/
  4. https://pypi.org/project/pyopendota/
  5. https://github.com/mdiller/MangoByte

Credits

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.