-
-
Notifications
You must be signed in to change notification settings - Fork 751
Clean Cog Rework #1793
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
Clean Cog Rework #1793
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
b2367b2
rework clean to fully use `delete_messages` instead of `purge`
Senjan21 7bcc74f
rename command `messages` to `until`
Senjan21 3797474
Introduce cache to cleaning as well as fix cancel
Senjan21 0a7c728
Implement range clean command
Senjan21 bb26ed3
set `self.cleaning` to False once done cleaning
Senjan21 4fcdfb0
Merge remote-tracking branch 'origin/master' into cleanrework
Senjan21 065787f
Merge remote-tracking branch 'origin/master' into cleanrework
Senjan21 26c60c1
Change typing, remove `range` alias
Senjan21 7e74bb3
swap predicate save order for correct deletion
Senjan21 7e40650
Merge branch 'main' into cleanrework
Senjan21 11be166
replace lambda with list in defaultdict
Senjan21 5bf42c7
Use correct kwarg for channel.history
Senjan21 add0781
simplify use_cache var
Senjan21 477810f
Naming changes for better self documentation
Senjan21 708063c
make predicate_range inclusive
Senjan21 c270549
Better response wording, added alias
Senjan21 6c9e4f5
Don't delete invocation in mod channel
Senjan21 e5e4343
document snowflake check better
Senjan21 1d08b29
Merge branch 'main' into cleanrework
ChrisLovering 12f3c40
Update _get_messages_from_channels return type
ChrisLovering 02b3c8a
Make is_older_than_14d a static method
ChrisLovering 0cc135d
Return empty containers if clean is cancelled
ChrisLovering 770528c
simplify range predicate for clean command
ChrisLovering ed35227
Rely on error handler for sending input errors to user
ChrisLovering b2e76dd
Fix references to kwarg after renaming in clean command
ChrisLovering 367cf10
Merge branch 'main' into cleanrework
mbaruh 97aa87a
Moved clean cog to moderation ext
mbaruh 2b5a531
Move clean logging to a helper function
mbaruh 841a148
Move setting cleaning flag to correct line
mbaruh 8aeec5f
Correct logging comment
mbaruh 33e0501
Change `from-to` primary name to `between`
mbaruh f9d2e69
Don't delete clean cancel embed in mod channel
mbaruh d81b550
Change cache usage
mbaruh 4334988
Rename "amount" argument to "traverse"
mbaruh be9bce4
Refactor code, correct logging
mbaruh 675630a
Add checkmark after command completes in mod channels
mbaruh 7b0cb52
Send message when no messages found
mbaruh 1330820
`until` and `between` overhaul
mbaruh 9f124b9
Restrict until and between to a single channel
mbaruh ec8f063
Use a cog-wide role check
mbaruh fee4c0c
Handle reacted message being deleted
mbaruh ab155fb
Added master command
mbaruh f2fb9f3
Disallow time range cleaning in multiple channels
mbaruh 3ccb533
Changed regex formatting to wrapped in backticks
mbaruh f5d7a00
Code and comments polish
mbaruh ed30eae
Fix regex search
mbaruh c992b6e
Improve responses
mbaruh 5b8e16b
Fix delete order
mbaruh e33b4aa
Switch `users` and `traverse` in main command
mbaruh d9efe01
Fix incorrect cache usage
mbaruh f4658f8
Handle Regex converter errors
mbaruh e215fb0
End clean on unexpected errors
mbaruh c272265
Indentation, type-hint, and documentation fixes
mbaruh 2abab68
Merge branch 'main' into cleanrework
mbaruh aa66673
Adjust docstring to #1876
mbaruh b42f148
Apply requested style changes
mbaruh cae0483
Improve documentation of global variables
mbaruh 21dc906
Merge branch 'main' into cleanrework
mbaruh 37b7a3b
Update Age converter to use TZ aware datetime
mbaruh d19824d
Remove channel limitation with time range
mbaruh 4b27cdf
Merge branch 'main' into cleanrework
wookie184 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.