A telegram bot for #100DaysOfCode challenge !
Add this bot to a group
- Tasks
- Add/mark complete task
- Only group members can do this
- Leaderboard
- Count points by task completed
- Count points by GitHub activity
- Set bot token as an environment variable in
.envfile. - Set up a database and set its connection URL in
README.md
Sample .env file :
TG_BOT_TOKEN=token_here
DATABASE_URL=postgres://:@localhost:5432/hdoc- Install dependencies :
pipenv install
- Run it :
pipenv shell python telegram_bot.py
- Build docker image named as
hdoc:docker build -t hdoc . - Run in docker :
The local changes in the folder will be reflected in the container cause it is mounted as a volume at
docker run -it -v /$(`echo realpath .`):/app --env-file .env hdoc:latest bash/appin container. - Run bot :
python telegram_bot.py