| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2022-10-08 | Fix pings validation | -3/+3 | ||
| 2022-10-08 | Add infraction channel setting | -10/+9 | ||
| 2022-10-07 | Prevent the duplicate filter warning from mentioning itself | -4/+7 | ||
| 2022-10-07 | Add more spacing in mod alert | -4/+4 | ||
| 2022-10-07 | Make auto-infraction actually work | -16/+66 | ||
| 2022-10-06 | domain/exact -> domain/subdomains | -9/+16 | ||
| The original plan was to have a field which only matches subdomains and not the domain itself, I got confused when I wrote the /exact field. This fixes a bug where the matches would be updated even if it didn't meet the criteria of the extra field. Also fixes some issues in the UI dealing with filter overrides. | ||||
| 2022-10-06 | Fix bug with setting domain to notify | -5/+1 | ||
| Unfortunately the filter doesn't know its full effect, only its overrides, so it might not know whether it's going to delete the message or not. This commit prevents errors, but might lead to unwanted behavior if there are two domains in a message, one that causes deletion and one that doesn't, and the second one gets evaluated last. This is basically a 'I hope no one notices' fix until I can think of something better. In practice this shouldn't be an issue. | ||||
| 2022-10-04 | Add filter content processing before posting/patching | -5/+89 | ||
| 2022-10-01 | Handle invalid UI edits | -4/+8 | ||
| 2022-10-01 | Prettify post/patch filter error | -3/+21 | ||
| 2022-10-01 | Show settings in sorted order in UI | -2/+2 | ||
| 2022-10-01 | Add a warning if an added filter has content identicalto others | -2/+15 | ||
| 2022-10-01 | Bring back enabled categories, remove redundant validators | -26/+19 | ||
| There needs to be a way to only enable a filter in a specific category, so this setting now fulfills that role. Disabled channels can be used to disable a filter in a specific channel within the category. Additionally the validators which maybe convert to int are now removed. As long as the int is the first in the Union, it will happen anyway. | ||||
| 2022-10-01 | Stress that a filter was triggered in DM | -1/+1 | ||
| 2022-10-01 | Fix channel_scope checking IDs and names separately | -16/+9 | ||
| 2022-10-01 | Fix patching removed override | -3/+9 | ||
| 2022-10-01 | Correctly handle DMs | -2/+8 | ||
| 2022-10-01 | Properly remove items from sequence edit | -1/+8 | ||
| Some items might not be stored as strings. | ||||
| 2022-10-01 | Keep sequences as lists in editing UI | -2/+1 | ||
| Sequences such as sets are not serializable, and it's going to be converted to the right type when loaded to the cog anyway. | ||||
| 2022-10-01 | Use try-except instead of is_digit in bypass_roles | -3/+4 | ||
| 2022-10-01 | Correct logging | -1/+1 | ||
| 2022-10-01 | Fix tests | -281/+44 | ||
| 2022-09-30 | Split actions and validations to their own packcages | -12/+23 | ||
| This is a purely aesthetic choice. Additionally fixes a small bug where a missing entry type would repeatedly invoke a warning on cog load. | ||||
| 2022-09-30 | Voice ban -> voice mute in auto-infractions | -1/+1 | ||
| This is a remnant after the last rebase. | ||||
| 2022-09-30 | Add filter delete command | -0/+12 | ||
| 2022-09-30 | Add filter edit command | -19/+116 | ||
| 2022-09-29 | Filter adding commands, simplify infraction | -122/+869 | ||
| This commit adds the mechanic to add new filters. The overrides of the settings can be provided in the command itself, but also through a UI made of Discord components. The UI adjusts itself to the data type of the setting, e.g a boolean setting will invoke a select with "True" and "False" options. This commit additionally gets rid of the mechanic to apply a superstar alongside another higher tier infraction for the same message. This is an edge case that isn't worth the complexity at the moment. Includes a small fix to the Ping setting which made the __or__ method malfunction. | ||||
| 2022-09-20 | Display mention & str of the mentionable object in `!remind list`. | -1/+1 | ||
| Added so that the user still gets information on what the mention is, when the mention doesn't render (due to client cache etc.) | ||||
| 2022-09-20 | move DEFAULT_RULES_DESCRIPTION under information.py | -9/+7 | ||
| 2022-09-19 | use subTest to isolate assertions | -14/+17 | ||
| 2022-09-19 | add DEFAULT_RULES_DESCRIPTION to avoid duplication | -13/+10 | ||
| 2022-09-19 | fix redundant test name | -1/+1 | ||
| 2022-09-19 | test the cases where default rules message is supposed to be sent | -0/+31 | ||
| 2022-09-19 | fix wrong type hint of the rules function return value | -2/+2 | ||
| 2022-09-19 | add test that checks for the sent content if one invalid index is present in ↵ | -0/+46 | ||
| the input | ||||
| 2022-09-19 | return final list of rule numbers to be sent | -2/+4 | ||
| 2022-09-19 | sort the list of final rule numbers | -1/+1 | ||
| 2022-09-18 | determine final_rule_numbers value by subscribing to the ↵ | -9/+2 | ||
| keyword_to_rule_number using the matched keywords | ||||
| 2022-09-18 | subscribe directly to the keyword_to_rule_number dict instead of using .get | -1/+2 | ||
| 2022-09-18 | remove redundant use of list transformation when sorting final rule numbers | -1/+1 | ||
| 2022-09-18 | Moved `escape_markdown` after Truthy check (#2279) | -2/+3 | ||
| 2022-09-18 | replace the keywords set with a dict that maps each keyword to its rule number | -8/+6 | ||
| 2022-09-18 | enumerate full_rules with a start index of 1 | -2/+2 | ||
| 2022-09-18 | remove useless initial sorting of keywords | -2/+0 | ||
| 2022-09-18 | remove duplicate final rule numbers then sort | -1/+1 | ||
| 2022-09-18 | remove unreachable code | -8/+0 | ||
| 2022-09-18 | rename pick to rule_number | -2/+2 | ||
| 2022-09-18 | rename index to rule_number | -1/+3 | ||
| 2022-09-18 | stop matching keywords when they're invalid upon triaging the rule numbers & ↵ | -19/+17 | ||
| keywords | ||||
| 2022-09-18 | stop matching as soon as an invalid kw is encountered | -11/+22 | ||