From 85f0d6f31880e73976b65699a7a6cf85aaeee93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?//=20ST=E2=88=86RRY=20//?= <58552395+starry69@users.noreply.github.com> Date: Mon, 27 Apr 2020 10:19:53 +0530 Subject: [PATCH] Fix 'bot' not defined in del blacklist --- emilia/modules/blacklist.py | 1 + 1 file changed, 1 insertion(+) diff --git a/emilia/modules/blacklist.py b/emilia/modules/blacklist.py index 3a1eb6d1..14ee2610 100644 --- a/emilia/modules/blacklist.py +++ b/emilia/modules/blacklist.py @@ -278,6 +278,7 @@ def del_blacklist(update, context): chat = update.effective_chat # type: Optional[Chat] message = update.effective_message # type: Optional[Message] user = update.effective_user + bot = context.bot to_match = extract_text(message) if not to_match: return