From 36c159fcfcf9107598390e07bb9bfc29149e70eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CF=BB=CE=B5=CE=BF=CF=89?= Date: Sun, 7 Jul 2019 18:57:23 +0300 Subject: [PATCH] fixed README --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 71dbc15..0c9f4af 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# TrueCaptcha Bot +# TrueCaptcha Bot This telegram bot will help you to protect chat from automated bots. It much more better than t.me/Cyberdyne_Systems_bot, because it check that user can recognize image and choose correct emoji (or guess it with small chance). Features of this bot: @@ -9,20 +9,23 @@ Features of this bot: You can use this bot in Telegram by [this nick](https://t.me/truecaptcha_bot) or install it on your own bot-account! - ## Usage -To use this bot you must make him administrator and give restrict users permission + +## Usage +To use this bot you must make him administrator and give restrict users permission ## Install your own bot -You can use systemd for managing bot startup with my [systemd unit file](https://gitlab.com/woem/truecaptcha_bot/blob/master/truecaptcha_bot.service). To use it, you must change `11111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA` to your bot's token, and `/path/to/bot/folder` to folder with this bot. Than you should run `systemctl daemon-reload && systemctl start truecaptcha_bot && systemctl enable truecaptcha_bot` and your bot will run even after server reboots. +Firstly, clone this repo localy: `git clone https://gitlab.com/woem/truecaptcha_bot.git && cd truecaptcha_bot` +Then install libraries: `pip install -r requirements.txt` +You can use systemd for managing bot startup with my [sample systemd unit file](https://gitlab.com/woem/truecaptcha_bot/blob/master/truecaptcha_bot.service). To use it, you must change `11111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA` to your bot's token, and `/path/to/bot/folder` to folder with this bot. Than you should run `systemctl daemon-reload && systemctl start truecaptcha_bot && systemctl enable truecaptcha_bot` and your bot will run even after server reboots. ### Adding more emojis and images All possible emojis and images stored in `/path/to/bot/folder/captcha/`. To add emoji, simple create new folder in directory `/path/to/bot/folder/captcha/` with emoji symbol. -_Example_: to add emoji of open book (📖) you must create folder `/path/to/bot/folder/captcha/📖/` +_Example_: to add emoji of open book (`📖`) you must create folder `/path/to/bot/folder/captcha/📖/` -To add image, choose which emoji corresponds this image and save picture in folder `/path/to/bot/folder/captcha/%emoji%`. For the convenience of the user, use one image to only one emoji. -_Example_: to add img_1.jpg corresponding emoji of open book (📖) you must put file to `/path/to/bot/folder/captcha/📖/img_1.jpg` +To add image, choose which emoji corresponds this image and save picture in folder `/path/to/bot/folder/captcha/_emoji_`. For the convenience of the user, use one image to only one emoji. +_Example_: to add img_1.jpg corresponding emoji of open book (`📖`) you must put file to `/path/to/bot/folder/captcha/📖/img_1.jpg` ### Security advice -You should add more emojis (and images to them) for gathering higher protection from bots (more possible options cause less guessing chance to bot) +You should add more emojis (and images to them) for gathering higher protection from bots (more possible options cause less guessing chance to bot)