| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | | | * | | | Refactor code, correct logging | 2021-08-28 | -96/+133 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit further splits the bulky _clean_messages function, and all its helper functions are grouped together in the same region. Additionally, this commit fixes logging by logging only the messages that have been successfully deleted, before being possibly interrupted by the cancel command. | ||||
| | | | * | | | Rename "amount" argument to "traverse" | 2021-08-28 | -24/+24 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This name as been confusing moderators for a while now. "amount" sounds like this is the amount of messages that the bot will try to delete, and keep going until it reaches that number. In reality it's the amount of latest messages per channel the bot will traverse. Hopefully the new name conveys that better. | ||||
| | | | * | | | Change cache usage | 2021-08-28 | -18/+46 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cache is used only when all channels are used, as before. Unlike before, using all channels requires using "*" in the channels argument. Before all channels would be used if use_cache was set to True. Using all channels uses the cache by default. To traverse every single text channel in the server, setting use_cache to False is required in the command. | ||||
| | | | * | | | Don't delete clean cancel embed in mod channel | 2021-08-27 | -1/+4 | ||
| | | | | | | | |||||
| | | | * | | | Change `from-to` primary name to `between` | 2021-08-27 | -2/+2 | ||
| | | | | | | | |||||
| | | | * | | | Correct logging comment | 2021-08-27 | -1/+1 | ||
| | | | | | | | |||||
| | | | * | | | Move setting cleaning flag to correct line | 2021-08-27 | -2/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | Between the concurrency check and setting the cleaning flag to True there was an await statement, which could potentially cause race conditions.The setting of the flag was moved to right below the concurrency check. | ||||
| | | | * | | | Move clean logging to a helper function | 2021-08-27 | -11/+11 | ||
| | | | | | | | |||||
| | | | * | | | Moved clean cog to moderation ext | 2021-08-27 | -0/+0 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | The cog is moderation related and all commands are exclusive to moderators. | ||||
| | | | * | | | Merge branch 'main' into cleanrework | 2021-08-27 | -933/+1826 | ||
| | | | |\ \ \ | |||||
| | | | * | | | | Fix references to kwarg after renaming in clean command | 2021-07-28 | -2/+2 | ||
| | | | | | | | | |||||
| | | | * | | | | Rely on error handler for sending input errors to user | 2021-07-28 | -45/+9 | ||
| | | | | | | | | |||||
| | | | * | | | | simplify range predicate for clean command | 2021-07-28 | -1/+1 | ||
| | | | | | | | | |||||
| | | | * | | | | Return empty containers if clean is cancelled | 2021-07-28 | -2/+2 | ||
| | | | | | | | | |||||
| | | | * | | | | Make is_older_than_14d a static method | 2021-07-26 | -11/+12 | ||
| | | | | | | | | |||||
| | | | * | | | | Update _get_messages_from_channels return type | 2021-07-26 | -2/+2 | ||
| | | | | | | | | |||||
| | | | * | | | | Merge branch 'main' into cleanrework | 2021-07-26 | -2344/+5485 | ||
| | | | |\ \ \ \ | |||||
| | | | * | | | | | document snowflake check better | 2021-04-16 | -4/+12 | ||
| | | | | | | | | | |||||
| | | | * | | | | | Don't delete invocation in mod channel | 2021-04-16 | -7/+10 | ||
| | | | | | | | | | |||||
| | | | * | | | | | Better response wording, added alias | 2021-04-16 | -2/+2 | ||
| | | | | | | | | | |||||
| | | | * | | | | | make predicate_range inclusive | 2021-04-16 | -1/+1 | ||
| | | | | | | | | | |||||
| | | | * | | | | | Naming changes for better self documentation | 2021-04-16 | -5/+5 | ||
| | | | | | | | | | |||||
| | | | * | | | | | simplify use_cache var | 2021-04-16 | -6/+2 | ||
| | | | | | | | | | |||||
| | | | * | | | | | Use correct kwarg for channel.history | 2021-04-16 | -1/+1 | ||
| | | | | | | | | | |||||
| | | | * | | | | | replace lambda with list in defaultdict | 2021-04-16 | -2/+2 | ||
| | | | | | | | | | |||||
| | | | * | | | | | Merge branch 'main' into cleanrework | 2021-04-15 | -2379/+4200 | ||
| | | | |\ \ \ \ \ | |||||
| | | | * | | | | | | swap predicate save order for correct deletion | 2021-04-15 | -4/+4 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Change typing, remove `range` alias | 2021-03-04 | -3/+3 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Merge remote-tracking branch 'origin/master' into cleanrework | 2021-03-04 | -170/+249 | ||
| | | | |\ \ \ \ \ \ | |||||
| | | | * \ \ \ \ \ \ | Merge remote-tracking branch 'origin/master' into cleanrework | 2021-03-02 | -2961/+4031 | ||
| | | | |\ \ \ \ \ \ \ | |||||
| | | | * | | | | | | | | set `self.cleaning` to False once done cleaning | 2021-02-24 | -0/+2 | ||
| | | | | | | | | | | | | |||||
| | | | * | | | | | | | | Implement range clean command | 2021-02-23 | -6/+57 | ||
| | | | | | | | | | | | | |||||
| | | | * | | | | | | | | Introduce cache to cleaning as well as fix cancel | 2021-02-23 | -36/+89 | ||
| | | | | | | | | | | | | |||||
| | | | * | | | | | | | | rename command `messages` to `until` | 2020-11-22 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new name should be more selfexplanatory | ||||
| | | | * | | | | | | | | rework clean to fully use `delete_messages` instead of `purge` | 2020-11-22 | -26/+60 | ||
| | | | | | | | | | | | | |||||
| | | | | | | | | | | * | Unify infraction embed title | 2021-11-10 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Embed for `!infractions by` no longer has the author in codeblock. | ||||
| | | | | | | | | | | * | Add missing newline after region comment | 2021-11-08 | -0/+1 | ||
| | | | | | | | | | | | | |||||
| | | | | | | | | | | * | Improve ordering logic in API request | 2021-11-03 | -1/+6 | ||
| | | | | | | | | | | | | |||||
| | | | | | | | | | | * | Address Review | 2021-11-02 | -16/+28 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add `format_infraction_count` and migrate - Improve logic for `actor` being `"m"`/`"me"` - Rename `search_by_user` to `search_by_actor` - Better Ordering Logic (thanks @ChrisLovering) - Make embed title consistent with other search embeds | ||||
| | | | | | | | | | | * | Add support for `!infractions by <m|me|uid>` | 2021-11-01 | -0/+38 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Save another API call | 2021-10-28 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Change command function docstrings | 2021-10-28 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Help command uses docstrings, so make them user-friendly) | ||||
| * | | | | | | | | | | | Update patreon description | 2021-10-28 | -2/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Save API call | 2021-10-28 | -2/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Fix capitalisation | 2021-10-27 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Unify links | 2021-10-27 | -2/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | embeds= -> embed= | 2021-10-27 | -2/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | `commands.context` -> `commands.Context` | 2021-10-27 | -2/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Adjust docstrings | 2021-10-27 | -2/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Rename some variables | 2021-10-27 | -12/+12 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Rename some variables" This reverts commit 2f5aeb06e816240b08453b5cf327c6b77958a3ab. Fix variable names (again) And again | ||||