You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use bot.add_command and add some test command.
Like this: bot.add_command("test", "Test command", getTest)
Than if I send message to my bot where the command word is placed.
I get response for the command even if it is not exact command.
From DEBUG
Message content:
Webex Teams Message:
{
"id": "",
"roomId": "",
"roomType": "direct",
"text": "MyTest",
"personId": "",
"personEmail": "",
"created": "2019-10-22T10:36:15.253Z"
}
Message from:
Found command: test
Solution
From source:
webexteamsbot.py line 312 - 319
# Find the command that was sent, if anycommand=""forcinsorted(self.commands.items()):
ifmessage.text.lower().find(c[0]) !=-1:
command=c[0]
sys.stderr.write("Found command: "+command+"\n")
# If a command was found, stop looking for othersbreak
My code:
# Find the command that was sent, if anycommand=""forcinself.commands.items():
# Checking only for exact matchifmessage.text.lower() ==c[0]:
command=c[0]
sys.stderr.write("Found command: "+command+"\n")
# If a command was found, stop looking for othersbreak
The text was updated successfully, but these errors were encountered:
Description
When I use bot.add_command and add some test command.
Like this:
bot.add_command("test", "Test command", getTest)
Than if I send message to my bot where the command word is placed.
I get response for the command even if it is not exact command.
From DEBUG
Solution
From source:
webexteamsbot.py line 312 - 319
My code:
The text was updated successfully, but these errors were encountered: