From cc8250925ad0b5f5d1762183288956abc055fd9d Mon Sep 17 00:00:00 2001 From: Sijis Aviles Date: Sat, 26 Oct 2024 00:53:56 -0500 Subject: [PATCH] fix: remove unsued variable --- errbot/core.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/errbot/core.py b/errbot/core.py index 390e2ef7b..78a0432bc 100644 --- a/errbot/core.py +++ b/errbot/core.py @@ -287,8 +287,6 @@ def process_message(self, msg: Message) -> bool: log.debug("*** username = %s", username) log.debug("*** text = %s", text) - suppress_cmd_not_found = self.bot_config.SUPPRESS_CMD_NOT_FOUND - prefixed = False # Keeps track whether text was prefixed with a bot prefix only_check_re_command = ( False # Becomes true if text is determed to not be a regular command @@ -324,10 +322,6 @@ def process_message(self, msg: Message) -> bool: 'Assuming "%s" to be a command because BOT_PREFIX_OPTIONAL_ON_CHAT is True', text, ) - # In order to keep noise down we surpress messages about the command - # not being found, because it's possible a plugin will trigger on what - # was said with trigger_message. - suppress_cmd_not_found = True elif not text.startswith(self.bot_config.BOT_PREFIX): only_check_re_command = True if text.startswith(self.bot_config.BOT_PREFIX):