-
-
Notifications
You must be signed in to change notification settings - Fork 101
SlashCommandEducator should check length #783
New issue
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
SlashCommandEducator should check length #783
Conversation
[Abhishek]Add verify the content length
application/src/main/java/org/togetherjava/tjbot/features/basic/SlashCommandEducator.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/features/basic/SlashCommandEducatorTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for ur contribution :) just a few things to go 👌
application/src/main/java/org/togetherjava/tjbot/features/basic/SlashCommandEducator.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/features/basic/SlashCommandEducatorTest.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/features/basic/SlashCommandEducatorTest.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/features/basic/SlashCommandEducatorTest.java
Outdated
Show resolved
Hide resolved
@abhishekanuj26 Awesome job! Are you also in our Discord server? If so, could you tell me your account name - then I can give you the Contributor role! 👍 |
@Zabuzard yep, I am on your discord server. account name - abhishekanuj#0654 |
Closes and fixes #782, lets
SlashCommandEducator
additionally check the length to prevent false positives. Long messages are not considered a command.