A fancy telegram bot (using pyTelegramBotAPI) connected to a Mongo database. This repo autobuilds the master branch via Travis-CI and pushes it to Docker HUB.
This bot does things - M. Rajoy, 2018
Create a virtual environment in your folder and activate it:
python -m venv venv
source venv/bin/activate
Install the requirements:
pip install -r requirements.txt
Set your environment variables manually or using autoenv in the .env file.
export MONGO_HOST=''
export MONGO_PORT=''
export MONGO_USERNAME=''
export MONGO_PASSWORD=''
export MONGO_DATABASE=''
export BOT_TOKEN=''
Run the bot:
python run.py
Build the docker image:
docker build -t <whatever>/mugre-bot .
Run it in on background mode:
docker run -d -e MONGO_HOST='' -e MONGO_PORT='' -e MONGO_USERNAME='' -e MONGO_PASSWORD='' -e MONGO_DATABASE='' -e BOT_TOKEN='' <whatever>/mugre-bot