A stattracking bot which has the abillity to kick lurkers in telegram chats
Switch branches/tags
Nothing to show
Clone or download
SitiSchu Add a whitelist feature
This allows users to be whitelisted to avoid execution

use `/whitelist + user_id` to add someone and `/whitelist - user_id` to remove someone
Latest commit ab52488 Mar 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sourukorekuta Add a whitelist feature Mar 14, 2018
.gitignore Add empty_config.py and add config.py to gitignore Oct 22, 2017
README.md Add english command list to readme Nov 4, 2017
requirements.txt Add requirements Oct 22, 2017

README.md

Setup:

This section describes the steps needed to get the bot working on your server.

Requirements:

  1. PostgreSQL Server (Tested on 9.4 and 9.6)
  2. Python 3.6+
  3. A Telegram Bot (Use @BotFather)
  4. A Telegram Account

Installation:

PostgreSQL

  1. Create a Database
  2. In this Database run the commands inside of the dbsetup.sql

Python

  1. Run pip install -r requirements.txt
    • This should install python-telegram-bot, telethon, and psycopg2

Config

  1. Copy and rename empty_config.py to config.py
  2. Fill out all the fields. To get a token for the Userbot follow this Tutorial: Creating your Telegram Application

Misc

BotFather:

If you want to autocomplete the commands send this as the command list to BotFather:

English:

start - starts the bot
help - displays help for the bot
ping - pings the bot
info - shows info for the user that has been replied to or the user that sent the command
stats - show group stats
executionwarn - tag all members subject to execution
execution - execute all lurkers

Japanese:

start - starts the bot
help - displays help for the bot
ping - pings the bot
joho - shows info for the user that has been replied to or the user that sent the command
tokei - show group stats
jikkokeikoku - tag all members subject to execution
jikko - execute all lurkers

Using the bot

Add the bot as Admin to your Group. It should start working.