Telegram bot provides time-based currency

Overview

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: 4 seconds every minute.
  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.

Usage

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

Check yourself status

Transfer time to user

Block user

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

Unblock user

Build

./gradlew clean test shadowJar

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

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

Deploy

Deploy to DigitalOcean

You can 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
You might also like...
Open Source Messenger App For Android - Real-time Messaging, Voice and Video Calls

Open Source Messenger App For Android - Real-time Messaging, Voice and Video Calls

Firebase-Chat-App-Final - An android real-time chat application implemented using firebase
Firebase-Chat-App-Final - An android real-time chat application implemented using firebase

Firebase-Chat-App-Final An android real-time chat application implemented using

A simple real-time chatting application using android

In this project we have created a simple real-time chatting application using android. In this project we can chat with a registered user in the app. We can also set profile photo, about, name. After chatting with registered user we can also logout from the app and we can login, whenever we want .

Email-based instant messaging for Android.
Email-based instant messaging for Android.

Delta Chat Android Client This is the Android client for Delta Chat. It is available on F-Droid and the Google Play Store. The APK can also be downloa

💙 Android sample Avengers chat application using Stream Chat SDK based on MVVM (ViewModel, Coroutines, Room, Hilt, Repository) architecture.
💙 Android sample Avengers chat application using Stream Chat SDK based on MVVM (ViewModel, Coroutines, Room, Hilt, Repository) architecture.

Avengers Chat AvengersChat is a demo application based on modern Android tech stacks and Stream Chat SDK. Previews Download Go to the Releases to down

 AvengersChat is a demo application based on modern Android tech stacks and Stream Chat SDK.
AvengersChat is a demo application based on modern Android tech stacks and Stream Chat SDK.

💙 Android sample Avengers chat application using Stream Chat SDK based on MVVM (ViewModel, Coroutines, Room, Hilt, Repository) architecture.

A mirai chatbot plugin based on OpenAI GPT-3 API
A mirai chatbot plugin based on OpenAI GPT-3 API

Mirai OpenAI GPT-3 ChatBot Plugin This is a Mirai ChatBot plugin based on OpenAI GPT-3 API. Installation Download the JAR file from https://github.com

A lightweight, feature-rich wrapper for the Telegram Bot API, providing a handy Kotlin DSL to quickly build your bot.

Kotlin Telegram Bot Kotlin based wrapper over Telegram API. Current version of the Telegram Api: 6.0 Principles Annotations Magic. The basic interacti

NekoX is an free and open source third-party Telegram client, based on Telegram-FOSS with features added.

NekoX NekoX is an free and open source third-party Telegram client, based on Telegram-FOSS with features added. We are no longer able to update versio

All-money-converter-app - A currency converter App built a free Currency API Dependency injection

This a currency converter App built a free Currency API Dependency injection . T

Simple telegram cat-captcha bot

kotlin-project-template Project Template for convenient project setup. Motivation Every time I create a new project, I do a lot of routine work, so th

A Telegram bot utilities that help to reduce the code amount

Flume Party A Telegram bot utilities that help to reduce code amount. Real project examples Pull Party Bot: 19% of code has been reduced. Resistance B

A repository that contains various examples of how to use the telegram-bot library.

Telegram-bot templates This repository contains simple different examples of how to use the telegram-bot library. How to use All the examples are conv

Simple Telegram bot that responds with list of results obtained from Google.
Simple Telegram bot that responds with list of results obtained from Google.

Simple project focused on learning a little more about how Telegram bots work and are created. The bot has a very basic functionality: the user types

Obsi-bot: the next generation discord utility bot 🔥

obsi-bot obsi-bot is the next generation discord utility bot. It is developed in Kotlin using kordex and kord Help me translating Feel free to help me

Synapse Moderation Bot - A bot for managing and moderating our community Discord server
Synapse Moderation Bot - A bot for managing and moderating our community Discord server

Synapse Moderation Bot A bot for managing and moderating our community Discord server. Note This bot is not public. While you can host it on your own,

Native Kotlin library for time-based TOTP and HMAC-based HOTP one-time passwords

A kotlin implementation of HOTP (RFC-4226) and TOTP (RFC-6238). Supports validation and generation of 2-factor authentication codes, recovery codes and randomly secure secrets.

Android NTP time library. Get the true current time impervious to device clock time changes
Android NTP time library. Get the true current time impervious to device clock time changes

TrueTime for Android Make sure to check out our counterpart too: TrueTime, an NTP library for Swift. NTP client for Android. Calculate the date and ti

🚀 🥳 MVVM based sample currency converter application using Room, Koin, ViewModel, LiveData, Coroutine
🚀 🥳 MVVM based sample currency converter application using Room, Koin, ViewModel, LiveData, Coroutine

Currency Converter A demo currency converter app using Modern Android App Development techniques Tech stack & Open-source libraries Minimum SDK level

Comments
  • Bots' power

    Bots' power

    Hi! Discovered this project right now from Habr article and it's awesome. Nice idea, but I have a question, haven't tried yet, but what if I create a lot of accounts (which I already have), enter in a chat with the bot, then write some messages from account and just wait for a while. Will I have a power equals time * accounts_count? Or there is some protection from it (suppose all bots have written human-like first messages)

    opened by y9san9 10
Owner
Daniel Demidko
Daniel Demidko
Simple telegram cat-captcha bot

kotlin-project-template Project Template for convenient project setup. Motivation Every time I create a new project, I do a lot of routine work, so th

Alex Sokol 15 Nov 16, 2022
A hybrid chat android application based on the features of Instagram and Whatsapp having UI just as Telegram.

A hybrid chat android application based on the features of Instagram and Whatsapp having UI just as Telegram.

Ratik Tiwari 1 May 22, 2022
Telegram client based on official Android sources

Telegram messenger for Android Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. This repo contains the

Dmitry Kotov 12 Dec 25, 2022
A QQ bot based on Mirai.

Chii A QQ bot based on Mirai. 个人使用, 仅供娱乐. Building from Source $ git clone https://github.com/MaxXSoft/Chii.git $ cd Chii $ gradle run License Copyri

MaxXing 5 Dec 17, 2021
Collects error messages ad sends them to Microsoft Teams or Telegram

ErrorCollector Logback-classic This projects aims to provide a convenient way to be notified if an error in on of your systems occurs. The appender wi

Mayope 4 Jan 11, 2022
Unofficial, FOSS-friendly fork of the original Telegram client for Android

or 1McafEgMvqAVujNLtcJumZHxp2UfaNByqs Telegram-FOSS Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. T

null 2k Jan 1, 2023
Discord bot for server join applications

Applications Bot This is a simple Discord bot that you can use for an applications system for your Discord server. It's expected to work as follows: A

Gareth Coles 1 Nov 1, 2021
A Chat-Bot Android Application

Sekobanashi_App A Chat-Bot Android Application. Features Sekobanashi is a chat-bot/assistant android application where the user can chat with one of t

Siddharth Singh 3 Nov 5, 2022
Android Real Time Chat & Messaging SDK

Android Chat SDK Overview Applozic brings real-time engagement with chat, video, and voice to your web, mobile, and conversational apps. We power emer

Applozic 659 May 14, 2022
Material (Gregorian - Hijri) Date & Time Picker

Hijri Date Picker (UmAlQuraCalendar) This library offers a hijri (Islamic Calendar) Date Picker designed on Google's Material Design Principals For Pi

Abdullah Alhazmy 130 Dec 27, 2022