Skip to content

Commit

Permalink
fix: remove unsued variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sijis committed Oct 26, 2024
1 parent 9bb6f34 commit db764ed
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions errbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit db764ed

Please sign in to comment.