We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a situation like this:
bot.command('test', test); bot.command('testing', testing);
Both "test" and "testing" will be matched if the command is /test, this is probably because the command checks using a "startswith"
I suggest to split the command text by spaces, then check if the first element equals "/$command"
The text was updated successfully, but these errors were encountered:
Thanks a lot for bringing this to my attention. I appreciate your input, as I clearly haven't considered this particular scenario earlier.
The code has been rectified in commit 4057c9b. The upcoming update will include this fix.
Once again, thank you for your contribution.
Sorry, something went wrong.
4057c9b
HeySreelal
No branches or pull requests
In a situation like this:
Both "test" and "testing" will be matched if the command is /test, this is probably because the command checks using a "startswith"
I suggest to split the command text by spaces, then check if the first element equals "/$command"
The text was updated successfully, but these errors were encountered: