This is a bot that is intended to function as a tool for a book club channel in Discord. The bot will connect to a data source hosted in Google Sheets acting as a lightweight database.
- Python 3
- Py3 Modules:
- virtualenv (recommended)
- discord.py
- gspread
In Python directly:
source ./bin/activate
pip install -r requirements
python book-bot.py
In Docker:
docker build -t book-bot:latest
docker run -v $(pwd)/key.json:/usr/src/app/key.json -e DISCORD_TOKEN='<DISCORD-BOT-TOKEN>' --rm book-bot:latest
Deploying Docker image via Ansible:
ansible-playbook deploy.yml -K -i <host-address>, -e ansible_python_interpreter=/usr/bin/python3 --ssh-common-args "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
- Add book commands
- docker-compose