Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.15 KB

README.md

File metadata and controls

49 lines (41 loc) · 1.15 KB

Streak Telegram Bot

Features

  • Count your streak
  • Count total days of preventing addiction
  • Collaborate with friends in groups
  • Leaderboard by streak days
  • Convenient use
  • Admins can remove cheaters from leaderboard
  • Admins can return people to leaderboard
  • Users can delete all info about themselfs
  • PostgreSQL
  • Async
  • Docker support
  • Written in Aiogram
  • MIT License :)

Try it out

There is a public instance of this bot located at @streakaqbot

Installing

Install requirements:

$ cp .env{.example,}

Editing .env file:

TOKEN="12345678:AAAAAAAAAAAAAAAAAAAAAAAAAAAA"
POSTGRES_LOGIN="login"
POSTGRES_PASSWORD="password"
POSTGRES_HOST="localhost"
POSTGRES_DB="database"
SQLALCHEMY_ECHO=false
TIMEOUT_SCOREBOARD_IN_SECONDS=360
  • TOKEN - Token from https://t.me/BotFather
  • SQLALCHEMY_ECHO - Every SQL transaction will be echoed. true or false
  • TIMEOUT_SCOREBOARD_IN_SECONDS - Every X seconds scoreboards will be refreshed.
$ docker-compose up -d --build

LICENSE

This product is licensed by the MIT License. LICENSE