669 B
669 B
pgbot
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.
Dependencies:
- aiocron - for the scheduler
- 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
pip install aiocron bs4 fake_headers psycopg pyyaml requests telethon