Closed jseynaev-cisco closed 3 years ago
Just running the bot
After receiving a message from the socket
ERROR:asyncio:Future exception was never retrieved future: <Future finished exception=AttributeError("'str' object has no attribute 'removeprefix'")>
removeprefix is only introduced in 3.9, so might be better to replace by something like this (bottom of the webex_bot.py file)
if message.startswith(command): return message[len(command):] return message
Fixed in #10
Description
Just running the bot
What I Did
After receiving a message from the socket
fix / workaround
removeprefix is only introduced in 3.9, so might be better to replace by something like this (bottom of the webex_bot.py file)