-
-
Notifications
You must be signed in to change notification settings - Fork 101
Migrate mute, unmute commands #252
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
draft until unblocked |
java-coding-prodigy
previously requested changes
Nov 11, 2021
application/src/main/java/org/togetherjava/tjbot/commands/moderation/ModerationUtils.java
Show resolved
Hide resolved
89a8746
to
b68cab1
Compare
Tais993
previously requested changes
Nov 14, 2021
application/src/main/java/org/togetherjava/tjbot/commands/moderation/BanCommand.java
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/moderation/BanCommand.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/moderation/KickCommand.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/moderation/UnbanCommand.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/moderation/UnmuteCommand.java
Outdated
Show resolved
Hide resolved
b68cab1
to
9b2609c
Compare
Implemented.
RealYusufIsmail
previously requested changes
Nov 16, 2021
application/src/main/java/org/togetherjava/tjbot/commands/moderation/ModerationUtils.java
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/moderation/ModerationUtils.java
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/moderation/ModerationUtils.java
Show resolved
Hide resolved
cdddebf
to
9ec7f2b
Compare
8ab08a3
to
5554048
Compare
Merged
Tais993
previously approved these changes
Dec 11, 2021
5554048
to
92fc9d6
Compare
Resolved conflicts, no code changes. Tais approval is still valid. |
SonarCloud Quality Gate failed. |
Tais993
approved these changes
Dec 14, 2021
RealYusufIsmail
approved these changes
Dec 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
Partially implements #64 . Adds commands:
/mute user reason
/unmute user reason
The commands are fairly simple and follow the pattern introduced by #244 . That said, the branch is based on that branch and hence also blocked by its release.
Notes
This PR slightly changes the initialization process of the bot by moving routines and listeners down into
Commands.java
(instead ofApplication.java
). This is a temporary change that is unfortuantely required, since they need access to systems such asTagSystem
orModAuditLogStore
, and also theJDA
instance (which is now also passed down throughCommandSystem
).All of this will be made nicer anyways with #235 and #236 , so I wouldnt bother too much for now.
Bot permission change
The bot needs to listen to user-join events, which requires the privileged Server Members Intent to be enabled (already enabled it on our bots and added it to the config, since it doesnt harm - but we have to tell contributors in an announcement).
Checklist
Basic
DM
Foreign users
Logic
Permissions
Rejoin
TODO