this is my discord bot. It hasn't got any name yet.
- Python >= 3.9
- pipenv >= 2020.11.15
- Git
- Discordpy >= 1.6.0
- SQLAlchemy >= 1.3.23
- Docker (recommended)
- docker-compose (recommended)
# clone git repository
git clone https://github.com/3onier/discord_bot
cd discord_bot
# adjust setting if needed
nano Dockerfile
nano docker-compose.yml
# build ducker image
sudo docker build . -t 3onier/discord_bot
# run cointainer
docker-compose up -d
# clone git repository
git clone https://github.com/3onier/discord_bot
# create virtual enviroment
pipenv install
# migrate database
pipenv run migrate
Name | Description | Default |
---|---|---|
TOKEN | Token for the Discord bot API | |
DB_HOST | Host address of MySQL server | |
DB_PORT | Port of MySQL server | 3306 |
DB_NAME | Name of database | discord_bot |
DB_USER | MySQL user | |
DB_PASSWORD | Password for the MySQL user |