Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Latest commit

 

History

History
102 lines (82 loc) · 2.35 KB

README.md

File metadata and controls

102 lines (82 loc) · 2.35 KB

🇺🇦 AssBot (open-source Ebobot)

avatar

Description

This bot is like "Ebobot" @kraft28_bot but that's open-source was written on Python.

Configuration

Typical .env file

  • TOKEN=here is your telegram token
  • OWNER=here is owner's telegram id

Example:

TOKEN=1777031958:AAF4O-_GmkvFJvhP7cVlxa697Y48rUPC4Hc
OWNER=37592934

Configuration in config.py

  • DB_NAME - database name
  • TOKEN - token which gets in .env file
  • SUPER_USERS - owners id which gets in .env file and you can add other to list

Python Dependencies

Recommended Python version: Python 3.10.5

Modules in use:

  • random
  • sqlite3
  • os
  • time
  • aiogram

Running the bot

Creating a virtual enviroment

python3 -m venv venv

Activate venv

source venv/bin/activate

Installing necessary modules

pip3 install -r requirements.txt

Run the bot

python3 app.py

Deativate venv

deactivate

User Commands

  • /start — greet the bot
  • /ass — start playing
  • /luck — try your luck
  • /help — show help message
  • /leave — leave game and delete user's data
  • /r text — send report to reports table
  • /statistic — show top list of users
  • /about — show info about the developer

Admin's commands

  • /admin — show admin commands
  • /bl group_id — show banned users
  • /ban group_id user_id — add user to blacklist
  • /groups — show groups id and name where bot are using
  • /ub group_id user_id — unban user
  • /reports — show all reports from table reports
  • /dreports — show all reports from table reports (detailed form)
  • /clear — delete all rows in table reports
  • /notify — notify all groups by your message

Screenshots

Adding bot to the group (it needs for creating a group's table) bot_added

/start start

/help start

/ass (your ass can reduce and icrease by random or stay without changes) start

/luck (allows after 100cm) start

/statistic start

/leave start

/about start