Bot that accepts applications and does utility stuff https://t.me/holoua_bot
Go to file
Profitroll 12d6273c9a DB validation WIP 2022-12-11 01:30:56 +01:00
cache Added cache 2022-10-26 14:56:42 +02:00
classes Column change 2022-12-10 15:53:41 +01:00
locale Send replies to messages sent with /message 2022-12-07 14:17:27 +01:00
modules /label command 2022-12-10 17:29:06 +01:00
validation DB validation WIP 2022-12-11 01:30:56 +01:00
.gitignore Started a complete refactor 2022-12-10 11:37:15 +01:00
LICENSE Initial commit 2022-10-16 21:35:09 +03:00
README.md Updated README 2022-12-06 13:22:55 +01:00
api_avatars.py Created /check for UptimeRobot pinger 2022-11-04 13:05:14 +01:00
app.py Removed # type: ignore and fixed missing imports 2022-12-06 10:26:22 +01:00
config_example.json /label command 2022-12-10 17:29:06 +01:00
holochecker.py /label command 2022-12-10 17:29:06 +01:00
requirements.txt Fixed starlette version 2022-12-10 15:53:19 +01:00

README.md

HoloCheckerBot

Small Telegram bot made on Pyrogram

What can this bot do?

  • Get user applications
  • Send applications to the admins
  • Give one-time links to join group
  • Track down users that were not allowed to join
  • Show applications to other users

Installation

  1. git clone https://git.end-play.xyz/profitroll/HoloCheckerBot.git
  2. cd HoloCheckerBot
  3. Install Python 3.7+ (at least 3.9 is recommended) for your OS
  4. python3 -m pip install -r requirements.txt
  5. Run it with python3 main.py after configuring

Configuration

So bot has its "config_example.json" and it needs to be changed. Copy this file to "config.json" and open it with any text editor.

You can see config file with all the comments below:

{
    "locale": "uk",
    "debug": false,
    "owner": 0,
    "bot_id": 0,
    "age_allowed": 0,
    "birthdays_notify": true,
    "birthdays_time": "09:00",
    "api": "http://example.com",
    "inline_preview_count": 7,
    "admin_group": 0,
    "destination_group": 0,
    "remove_application_time": -1,
    "admins": [],
    "bot": {
        "api_id": 0,
        "api_hash": "",
        "bot_token": ""
    },
    "logging": {
        "size": 512,
        "location": "logs"
    },
    "locations": {
        "data": "data",
        "cache": "cache",
        "locale": "locale"
    },
    "commands": {
        "rules": "Check out the rules",
        "reapply": "Resubmit the application"
    },
    "commands_admin": {
        "reboot": "Restart the bot",
        "message": "Send a message", 
        "warnings": "Check user's warnings",
        "application": "Check user's application",
        "applications": "Retrieve all applications as a JSON"
    },
    "commands_group_admin": {
        "reboot": "Restart the bot",
        "message": "Send a message", 
        "warnings": "Check user's warnings",
        "application": "Check user's application",
        "applications": "Retrieve all applications as a JSON"
    },
    "commands_group_destination": {
        "warn": "Warn a user"
    }
}

After all of that you're good to go! Happy using :)

To-Do

  • Complete messenger between user and admins
  • Check sponsorship on Holo girls
  • Get application by id and user_id