No description
Find a file
2023-11-05 15:05:06 +00:00
pgbotlib fix check for chats in response module 2023-11-05 15:05:06 +00:00
.gitignore docs, gitignore 2023-10-31 02:28:16 +02:00
config.dist.yml config examples 2023-10-31 02:14:26 +02:00
LICENSE Initial commit 2023-10-30 23:38:30 +00:00
pgbot some refactoring, fixed db stuff and help section 2023-11-05 11:31:42 +00:00
populate a script to populate databases, and a command to see chat id 2023-11-01 02:01:19 +00:00
README.md update readme 2023-11-05 01:07:09 +00:00
sched.dist.yml implement a functioning scheduler, get rid of threads 2023-11-05 01:01:33 +00:00
tokens.dist.yml config examples 2023-10-31 02:14:26 +02:00

pgbot

Use config.yml to set it up. It needs a list of regex with tokens and a 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