BOTA
BOT-A is a free Discord Dota 2 bot which provides comprehensive Information of every Dota 2 characters and exciting features for the community. Pull request are welcome and report any issues you find. The Bot is still in beta so I don't expect it to be perfect.
Website: https://bota.tech/
Commands & Screenshots
Commands List: !help
Screenshots:
Pre-Requirements:
Before setting up the environment we first need to get:
- Discord Token
- Discord Client ID
- Dota2 API key
- Twitch Client ID
- Discord User (Optional)
- To get
Discord Token
andDiscord Client ID
you can check this - You can get your
Dota2 API key
from here - To get
Twitch Client ID
you need to register an application in Twitch developer. You can follow this - You can get your
Discord User
by clicking on your profile in discord. It will look likeYourName#1234
eg:bendang#3278
Once this is done you can assign all this key values in bota/private_constant.py
.
Setup Bota
-
Clone repo and Setup postgres DB
# clone repo git clone https://github.com/bendangnuksung/bota.git cd bota # Install and setup PSQL # default password given, please check db_setup.sh to change password sh db_setup.sh
-
Run the independent flask server which handles the log process.
sh run_flask.sh
-
Run the bot. There are two ways to run BOTA
- Run using Docker. (RECOMMENDED)
- Run directly from the Repository
1. Run using Docker (RECOMMENDED)
- Download the docker image from DockerHub or download directly using:
docker pull bendang/bota:latest
- Run the docker image with the credentials which you got from Pre-Requirements:
# docker run --rm -i -t --net=host --entrypoint=/bota/run_bota_docker.sh bendang/bota:latest "DISCORD_TOKEN" "DISCORD_CLIENT_ID" "DOTA2_API_KEY" "ADMIN_ID" "TWITCH_CLIENT_IDS" "LOG_PROCESS_IP_ADDRESS" docker run --rm -i -t --net=host --entrypoint=/bota/run_bota_docker.sh bendang/bota:latest 1234 ABCD 6789 YOU#67 FGHI http://0.0.0.0:5000
2. Run directly from Repository
-
Install requirements
sudo sh setup.sh
-
Create two Screen.
- Screen 1: Run the scrap process
sh run_scrap.sh
- Screen 2: Run the BOT process
sh run_bota.sh
- Screen 1: Run the scrap process
CAUTION : While running directly from repository if you are using chrome it will automatically close as the scrap process uses it and it kills once the scraping is done.
Data Collection Source
- DotaBuff
- Twitch
- D2PT
- DotaVoyance
- Dota2API