update readme and dist config
This commit is contained in:
parent
914d7034d0
commit
8ab44e1fdb
2 changed files with 2 additions and 14 deletions
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue