diff --git a/README.md b/README.md index 0071d69..df5d0f5 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,4 @@ 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 -``` +Dependencies: python3 and modules in `requirements.txt` diff --git a/pgbot b/pgbot index f206df0..7cb36ca 100755 --- a/pgbot +++ b/pgbot @@ -2,7 +2,6 @@ import asyncio import sys -import threading import telethon import yaml diff --git a/pgbotlib/defaults.py b/pgbotlib/defaults.py index 47cb4bc..51e171c 100644 --- a/pgbotlib/defaults.py +++ b/pgbotlib/defaults.py @@ -1,4 +1,6 @@ -CONFDIR = '/pgbot/conf' +''' module defaults ''' + +CONFDIR = '/etc/pgbot' CONFIG = CONFDIR + '/pgbot.yml' TOKENS = CONFDIR + '/tokens.yml' SCHEDULE = CONFDIR + '/sched.yml'