Update requirements, Python 3.12, pip-tools and remove idle packages.

This commit is contained in:
Rykov7
2024-06-01 17:03:15 +03:00
parent 034c05d957
commit 39ba68c07c
10 changed files with 38 additions and 28 deletions
+3 -3
View File
@@ -8,9 +8,9 @@ from .helpers import is_url_reachable
load_dotenv()
TOKEN = os.environ.get("LUTZPYBOT")
TOKEN = os.environ.get("STAN")
if not TOKEN:
raise LookupError("LUTZPYBOT (token) has not been found in .env")
raise LookupError("STAN (token) has not been found in .env")
WHITEIDS = {int(i) for i in os.environ.get("whiteids").split(",")}
ROLLBACK = {int(i) for i in os.environ.get("rollback").split(",")}
@@ -18,7 +18,7 @@ USE_REMINDER = os.environ.get("use_reminder", "TRUE") == "TRUE"
RULES_URL = os.environ.get("rules_url", "https://telegra.ph/pythonchatru-07-07")
if not is_url_reachable(RULES_URL):
raise LookupError(f"LUTZPYBOT rules url({RULES_URL}) is not reachable")
raise LookupError(f"STAN rules url({RULES_URL}) is not reachable")
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
logger.setLevel(logging.ERROR)