waydk / manjiro_sano

An anime themed telegram group management bot

Home Page:https://t.me/manjiro_sano_robot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

manjiro_sano

Anime telegram bot for group management

Telegram bot written in python using aiogram as the framework, postgresql as the database

Available commands:

  • !mute /mute - prohibit a user from writing for a certain period of time (!ro 1 spam)
  • !unmute /unmute - to allow writing again (!un_ro)
  • !ban /ban - Remove a user from the group (!ban)
  • !unban /unban - Ability to return to the group (!un_ban)
  • /set_welcome - Allows you to set the chat greeting (/set_welcome some text)
  • /set_farewell -Allows you to set a goodbye for users (/set_farewell some text)
  • /kick - An entertaining command that allows you to hit another user (/kick)
  • /anime - Сommand to search for information about anime (/anime title_anime)
  • /say - with this command you can make the bot say something (/say text)
  • /gif - you can find a gif with the given text (/gif text)

Development

System dependencies

  • Python 3.9
  • SQLAlchemy 1.3.24
  • environs 8.0.0
  • gino 1.0.1
  • asyncpg 0.22.0
  • aiogram 2.13
  • loguru 0.5.3
  • requests 2.25.1

Setup environment

  • Rename .env.dist to .env
  • Fill in your data
  • ADMINS is responsible for the list of bot administrators, so far not used
  • BOT_TOKEN is responsible for the heart of the bot, without it it will not work, get in BotFather
  • PG_HOST is responsible for where your database is located
  • PG_USER and PG_PASSWORD are needed to access the database
  • DATABASE database name
  • GIF_API_KEY - you can get it HERE

About

An anime themed telegram group management bot

https://t.me/manjiro_sano_robot

License:MIT License


Languages

Language:Python 99.6%Language:Dockerfile 0.4%