From 6fbc55727c71bac12897905ffc73e09c7d08be11 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sun, 23 Oct 2022 12:13:12 +0200 Subject: [PATCH] Improved README --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/README.md b/README.md index 94afab2..1807059 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,50 @@ # HoloCheckerBot +Small Telegram bot made on Pyrogram + +## 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: + +```jsonc +{ + "locale": "uk", # locale file. it's a json located under locale folder + "owner": 0, # telegram ID of a bot owner + "age_allowed": 0, # minimum age of user that submits application + "admin_group": 0, # telegram ID of a admin's group + "destination_group": 0, # telegram ID of a user's group + "admins": [], # list of telegram ID's of users that are admins + "bot": { + "api_id": 0, # telegram API ID + "api_hash": "", # telegram API hash + "bot_token": "" # telegram bot's token + }, + "logging": { + "size": 512, # size of log file in kbytes after which it should be rotated + "location": "logs" # location of logs folder. can be relative or absolute + }, + "locations": { + "data": "data", # location of data folder. can be relative or absolute + "locale": "locale" # location of locale folder. can be relative or absolute + }, + "commands": { # user command and its description + "start": "Start using the bot" + }, + "commands_admin": { # admin commands and their description + "reboot": "Restart the bot" + } +} +``` + +After all of that you're good to go! Happy using :)