Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

BEARlyDev/100DaysOfCodeBot

Repository files navigation

100DaysOfCodeBot

A telegram bot for #100DaysOfCode challenge !

Add this bot to a group

Features

  • Tasks
    • Add/mark complete task
    • Only group members can do this
  • Leaderboard
    • Count points by task completed
    • Count points by GitHub activity

Development

  • Set bot token as an environment variable in .env file.
  • 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

pipenv

  • Install dependencies :
    pipenv install
  • Run it :
    pipenv shell
    python telegram_bot.py

Docker

  • Build docker image named as hdoc :
    docker build -t hdoc .
    
  • Run in docker :
    docker run -it -v /$(`echo realpath .`):/app --env-file .env hdoc:latest bash
    The local changes in the folder will be reflected in the container cause it is mounted as a volume at /app in container.
  • Run bot :
    python telegram_bot.py
    

About

Bot For 100 Days of Code Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •