Implementation of ?++ command for users with Admin Roles (Core, Maintainer, and Admin) #188
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.Describe the changes made:
-Added regex to detect '?++' command
-Verified that the user is able to use '?++' command by checking their roles, only admin, maintainer, or core roles are able to use this command.
-Bot outputs appropriate message if user is not an admin/core/maintainer user
-If user does have an admin role, the API request to the award Points API is populated with an argument of 2 to award 2 points
-Resolved UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message that was being caused in some use cases because we were passing empty Promises in points.js to botEngine.js. We would then try to message.channel.send that empty response, causing the warning above.
-Added test cases in points.test.js for the ?++ command
Extend ++ command to award double points for good questions #176