forked from Andrey-Ved/CaptchaBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
586447d
commit ff34b06
Showing
11 changed files
with
66 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ env_dist | |
|
||
# user | ||
logs | ||
users | ||
LICENSE | ||
Procfile | ||
README.md | ||
brief.txt | ||
runtime.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,8 +161,8 @@ fabric.properties | |
# user | ||
output/ | ||
tmpl/ | ||
logs/ | ||
users/ | ||
tmpl.* | ||
*.env | ||
brief.* | ||
*.env | ||
logs/ | ||
users/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
worker: python -m captcha_bot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,54 @@ | ||
# CaptchaBot | ||
|
||
telegram-bot (python, [aiogram](https://aiogram.dev/)) | ||
Telegram-bot (python, [aiogram](https://aiogram.dev/)) | ||
|
||
captcha for incoming telegram chats users | ||
Captcha for incoming telegram chats users. | ||
|
||
### Launching in Docker | ||
|
||
Create and start container: | ||
|
||
```bash | ||
$ export BOT_TOKEN=<BOT_TOKEN> | ||
$ export CHAT_ID_1=<CHAT_ID_1> | ||
$ export CHAT_ID_2=<CHAT_ID_2> | ||
$ export CHAT_ID_3=<CHAT_ID_3> | ||
$ export CHAT_ID_4=<CHAT_ID_4> | ||
$ docker-compose up -d | ||
``` | ||
|
||
Stop lifted containers: | ||
|
||
```bash | ||
$ docker-compose stop | ||
``` | ||
|
||
Start stopped containers: | ||
|
||
```bash | ||
$ docker-compose start | ||
``` | ||
|
||
Stop and delete containers and network: | ||
|
||
```bash | ||
$ docker-compose down | ||
``` | ||
|
||
Remove image: | ||
|
||
```bash | ||
$ docker rmi captcha_bot | ||
``` | ||
|
||
Clear logs: | ||
|
||
```bash | ||
$ sudo rm -rf logs/* | ||
``` | ||
|
||
Execute a command in a running container: | ||
|
||
```bash | ||
$ docker exec -it CaptchaBot bash | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,3 @@ volumes: | |
# ------------------------------- | ||
# Clear logs & users: | ||
# $ sudo rm -rf logs/* | ||
# $ sudo rm -rf users/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
aiogram~=2.25.1 | ||
aiogram==2.25.1 | ||
pytz==2023.3 | ||
python-dotenv==1.0.0 | ||
asynctest==0.13.0 |