Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

demidko/timecobot

Repository files navigation

Timecobot

Telegram bot provides time-based currency. The accumulated time can be used to block another user. There are no discriminatory rules, administrators and moderators. Bot also can be used to pin messages.

  1. Each user accumulates time. Time (currency) is calculated automatically using a secret formula.
  2. Time can be passed on to other people.
  3. The accumulated time can be used to block another user.
    User will remain in the chat, but user will not be able to write anything.
  4. Time can be used to ransom the user from the ban.
  5. Time can be used to pin messages.

2022.07.14 update

The project is on hold until there is a real need for practical application. Most of the time, people don't care who has the banhammer, they just want to chat, not get into gunfights. This game proved to be too difficult for most chats.

Usage

To start using the system, just add @timecobot to the group with admin rights. Bot understands spoken language (english and russian). Experiment!

Examples



User will remain in the chat, but he will not be able to write anything:

Build

./gradlew clean build

Self-executable jar will be located in build/libs. To start long polling execute command

REDIS=rediss://example.com:37081 TOKEN=4760:zGTAaKGo java -jar build/libs/*-all.jar

Deploy

Deploy to DigitalOcean

You need use a Redis cluster to store the time: specify the connection string via the DATABASE_URL environment variable.

TODO

  1. 'Ban feature' to restrict group's admins
  2. New command (timecobot2)