refactor bot.py

This commit is contained in:
Rykov7
2022-12-20 05:16:08 +03:00
parent a12b9ea0b3
commit 498b71e166
3 changed files with 15 additions and 24 deletions
+5
View File
@@ -1,8 +1,12 @@
import os
import re
import logging
from telebot import TeleBot
from dotenv import load_dotenv
logging.basicConfig(level=logging.DEBUG, format='%(message)s')
logging.warning('>>> PYBOT STARTED!')
load_dotenv()
TOKEN = os.environ.get('LUTZPYBOT', 'Token not in ENVIRON')
@@ -29,6 +33,7 @@ LIB = '📚 <b><a href="https://telegra.ph/what-to-read-10-06">Библиоте
SPAM = ['me.sv/', 'tg.sv/', 'goo.by/', 'go.sv/', 'intim.video/', 'uclck.ru/']
NON_GRATA = ['дудар', 'хауди', 'dudar']
BAN_WORDS = ['GREEN ROOM']
ZEN = ['Beautiful is better than ugly.', 'Explicit is better than implicit.', 'Simple is better than complex.',
'Complex is better than complicated.', 'Flat is better than nested.', 'Sparse is better than dense.',