From 35da34bc8c3ee55aa3a2a578a1e4e7453a60933b Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 9 Nov 2024 21:18:28 +0200 Subject: [PATCH] cleanup unused import, revert default config path --- README.md | 16 +--------------- pgbot | 1 - pgbotlib/defaults.py | 4 +++- 3 files changed, 4 insertions(+), 17 deletions(-) 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'