Source code of https://t.me/rofl_mmr_bot: This bot has next commands:
/mmr- gives you random amount of points/top- prints top by points in current group/top10- same as/topbut prints only top 10 participants
Bot uses Mysql and telethon
Firstly run:
pip install -r requirements.txt
Secondly setup enviorment variables:
API_ID- from https://my.telegram.orgAPI_HASH- from https://my.telegram.orgTOKEN- your telegram bot token from https://t.me/BotFatherBOT_NAME- your bot name(for examplerofl_mmr_bot)db_username- username for mysqldb_password- password for mysqlhost- mysql host(by defaultlocalhost)port- mysql port(by default3306)db_name- mysql database name
Thirdly run:
python3 main.py