tarot-bot - a mini-application that provides a demo process for receiving tarot readings. The user is given the opportunity to purchase a subscription with which he can choose all types of tarot readings.
If you want to deploy it easy with Docker. Read this.
- Deploy a virtual environment
- Install libraries:
cd backend/ && pip install -r requiremenets.txt
-
Create a
.env
file with the following variables inbackend
folder:- BOT_API_TOKEN='Your bot token'
- ALLOWED_HOSTS='Your hosts'
- SECRET_KEY='Django secret key'
- DEBUG='True for dev and False for prod'
- PROVIDER_TOKEN='provider token from BotFather'
-
Perform migrations
cd backend/ && python3 manage.py migrate
-
Run Django:
cd backend/ && python3 manage.py runserver
- Run bot in another terminal:
cd backend/bot/ && python3 bot.py