pgbot/README.md

20 lines
669 B
Markdown
Raw Normal View History

2023-10-31 01:38:30 +02:00
# pgbot
2024-10-25 13:00:22 +03:00
Use `pgbot.yml` along with `tokens.yml` to set it up. Default directory for configs is `/etc/pgbot`. It needs a list of regex with tokens and a postgresql database to match them. This doc is probably going to be abandoned right away, but at least I have added this line I dunno.
2023-10-31 02:28:16 +02:00
Dependencies:
2023-11-05 03:07:09 +02:00
* aiocron - for the scheduler
2023-10-31 02:28:16 +02:00
* bs4 - for parsing html
* fake_headers - for tricking search engines
* psycopg - for pgsql
* pyyaml - for config parsing
* requests - for http requests
* telethon - for interacting with bot api
Initial setup:
```
python -m venv .venv
source .venv/bin/activate
2023-11-05 03:07:09 +02:00
pip install aiocron bs4 fake_headers psycopg pyyaml requests telethon
2023-10-31 02:28:16 +02:00
```