From 018a95a8ea4438a62bb34978c3887ded7a4dab2d Mon Sep 17 00:00:00 2001 From: Rykov7 Date: Mon, 28 Nov 2022 14:32:03 +0300 Subject: [PATCH] minor upd --- README.md | 6 +++--- app/admin.py | 4 +--- app/bot.py | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1139d4b..d6756ed 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ Multipurpose Telegram Bot for Python group * Send links on command (chat rules, FAQs, libraries etc.) * Ban users and delete messages * Filter links - * Remind for dates - * Daily statistics publication (how much banned, deleted, sent messages) + * Remind dates + * Daily statistics publication (how many banned, deleted, sent messages) * Search for the Zen of Python quotes (inline query) - * Help users with googling when they send search query to your group instead of Google + * Help users with googling their queries * Make faces when doubtful bloggers are mentioned * Etc. (functionality is growing up) diff --git a/app/admin.py b/app/admin.py index 344f494..fde9bf5 100644 --- a/app/admin.py +++ b/app/admin.py @@ -1,4 +1,4 @@ -from imp import reload +from importlib import reload from . import config from . import me @@ -13,5 +13,3 @@ def reload_modules(): reload(config) reload(me) reload(bot_mod) - - diff --git a/app/bot.py b/app/bot.py index 5683eaa..6d40fea 100644 --- a/app/bot.py +++ b/app/bot.py @@ -89,7 +89,7 @@ def check_delete_list(type_message: types.Message) -> bool: if type_message.entities: for entity in type_message.entities: if entity.url and check_no_allowed(ALLOWED_WORDS, entity.url): - logging.info(f'[DEL] {type_message.from_user.first_name} - {entity.url}') + logging.info(f'[DEL] {type_message.from_user.first_name} - Entity ({entity.url})') return True