From a702122ae2bafe4371a5db145dcde46417a2ef02 Mon Sep 17 00:00:00 2001 From: Sam Hopwell Date: Thu, 29 Sep 2022 10:06:28 +0100 Subject: [PATCH] fix bot_alt_prefixes --- slackv3.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/slackv3.py b/slackv3.py index 4051300..4edba47 100644 --- a/slackv3.py +++ b/slackv3.py @@ -170,10 +170,8 @@ def update_alternate_prefixes(self): f'Failed to look up Slack userid for alternate prefix "{prefix}": {str(e)}' ) - self.bot_alt_prefixes = tuple( - x.lower() for x in self.bot_config.BOT_ALT_PREFIXES - ) - log.debug(f"Converted bot_alt_prefixes: {self.bot_config.BOT_ALT_PREFIXES}") + self.bot_alt_prefixes = tuple(x for x in converted_prefixes) + log.debug(f"Converted bot_alt_prefixes: {self.bot_alt_prefixes}") def _setup_event_callbacks(self): # List of events obtained from https://api.slack.com/events