The get_message_passed_to_command function strips the command keyword from the message sent by the user, however this only happens if the capitalization matches. In testing, if the command sent by the user has different capitalization ("Command" vs "command"), then the command keyword is not stripped.
I added a quick change to the get_message_passed_to_command function to fix this.
For example, using a sample bot command that will echo the received message:
The
get_message_passed_to_command
function strips the command keyword from the message sent by the user, however this only happens if the capitalization matches. In testing, if the command sent by the user has different capitalization ("Command" vs "command"), then the command keyword is not stripped.I added a quick change to the
get_message_passed_to_command
function to fix this.For example, using a sample bot command that will echo the received message:
Then we see the following responses from the bot:![bot issue](https://user-images.githubusercontent.com/29705314/155414667-79ed58c8-e4c5-414d-9729-10732561f7f8.png)
Test reports: