ХабрПостыНовостиМегапосты?

Telegram bot provides time-based currency

Many of us spend time in specialized telegram groups. The power over communication here belongs to random people with their own shortcomings. Conflict and abuse occurs regularly. Is there another way to keep order so that scam spam doesn't flourish and no one has total control over group members?
In my case, these thoughts led to the development and testing of a system that can be connected to your Telegram today.

First of all, you need to determine what is the key aspect, the currency of the system. Not karma and not points, not likes and not a rating. Time itself became it. What follows from this?

So, how it works in theory is understandable, but what is needed for the practical functioning of such a system?

What about examples?

The bot understands free-form English in requests. Abbreviations are used: d - days, h - hours, m - minutes, s - seconds. All notifications are public and disappear after 15 seconds.

Here's how to find out how much time has accumulated
Here's how to find out how much time has accumulated
You can ban another person or spammer by telling him how long he will be banned (and possibly a reason)
You can ban another person or spammer by telling him how long he will be banned (and possibly a reason)
If this is a misunderstanding, you can simply write in the answer that the person needs to be unblocked
If this is a misunderstanding, you can simply write in the answer that the person needs to be unblocked
To transfer time to another user, indicate in the answer how much time you need to transfer
To transfer time to another user, indicate in the answer how much time you need to transfer

Talk is cheap. Show me the code!

The Kotlin language is used on the server side, and the Redis cluster is used for the database. All code is documented and available on GitHub: demidko/timecobot

To start using the bot in your telegram group, just add it as administrator: @timecobot

Write your opinion in the comments, is it necessary for the it-community and is it worth developing the system further? What can be improved or changed? Are you interested in a detailed article with code on how this is implemented internally?

Have a nice day, everyone!

View comments on Hacker News

@Reformat
09.05.2021 13:03 UTC
Первоисточник

Комментарии

@Oxoron
09.05.2021 09:11 UTC
0
Multi-accounts break your idea.
@
10.05.2021 13:59 UTC
0
НЛО прилетело и опубликовало эту надпись здесь
10.05.2021 14:18 UTC
0
Was banhammers ever free for everyone?
10.05.2021 14:49 UTC
0
When was the banhammer market available to everyone in the past?
@derptacious
11.05.2021 08:17 UTC
+1
Telegram should release their server source! github.com/telegramdesktop/tdesktop/issues/16068