From 8ab44e1fdb279de46307627a3341096219ec906b Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 12 Dec 2024 22:37:22 +0200 Subject: [PATCH] update readme and dist config --- README.md | 2 ++ configs/pgbot.dist.yml | 14 -------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 12ec3db..3d0cf6a 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ 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. +`API_ID`, `API_HASH`, `BOT_TOKEN` and `DB_SPEC` env vars have to be provided for the bot to work. See Telethon and psycopg docs for what these are. + Dependencies: python >=3.10 and modules in `requirements.txt` diff --git a/configs/pgbot.dist.yml b/configs/pgbot.dist.yml index 333dfca..d3ece58 100644 --- a/configs/pgbot.dist.yml +++ b/configs/pgbot.dist.yml @@ -1,17 +1,3 @@ -# gibberish here, read telethon docs for further details -api_id: 00000000 -api_hash: 000000000000000000000000000000ff -bot_token: 0000000000:ABCDEFGHijklmnoPQRSTUVWXYZ-v1234567 - -# refer psycopg.connect() docs for db_spec, also this: -# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING -db_spec: | - dbname=pgbot - user=pgbot - host=127.0.0.1 - port=5432 - password=somepass - timezone: Europe/Moscow # list of privileged users that can execute commands