diff --git a/webex_bot/webex_bot.py b/webex_bot/webex_bot.py index 2fc94e6..ff5beff 100644 --- a/webex_bot/webex_bot.py +++ b/webex_bot/webex_bot.py @@ -222,7 +222,7 @@ def process_raw_command(self, raw_message, teams_message, user_email, activity, if not is_card_callback_command and c.command_keyword: log.debug(f"c.command_keyword: {c.command_keyword}") - if user_command.find(c.command_keyword) != -1: + if user_command.strip().split()[0].lower() == c.command_keyword.lower(): command = c # If a command was found, stop looking for others break