| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
| |
Methods that work with only a specific list type are moved to AtomicList.
FilterList is now a subclass of dict, since that's what it is.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
The UI is a simplified version of the filter UI. In fact the two views now use the same base class.
Also fixes a bug in filters with displaying the correct value in the embed for filter settings.
|
| | |
|
| | |
|
| |
|
|
| |
An option is added to filter add and edit to copy the overrides over from another filter.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
If an override is added that is equal to the default, it is ignored instead.
If an override is read from a Filter object that is equal to its default, it is ignored instead.
This is done because otherwise when a setting shares an entry with an overriden setting (e.g infraction_type with infraction_duration),
there's no way of knowing whether it was truly overridden, since None values are not preserved for filters on loading (that is because the same pydantic models are used for both the filter and filter-list settings).
This seems like an acceptable trade-off since overrides which are equal to their defaults don't have a practical use.
Addiotionally, this commit fixes not being able to set an empty string as an override to a non-empty default.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Some items might not be stored as strings.
|
| |
|
|
| |
Sequences such as sets are not serializable, and it's going to be converted to the right type when loaded to the cog anyway.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
This is a purely aesthetic choice.
Additionally fixes a small bug where a missing entry type would repeatedly invoke a warning on cog load.
|
| |
|
|
| |
This is a remnant after the last rebase.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |\ |
|
| | |\
| | |
| | | |
Add ability to delete multiple reminders at once & display mentions in `!remind list`.
|
| | | |\
| | |/
| |/| |
|
| | |\ \ |
|
| | | |\ \
| | |/ /
| |/| | |
|
| | | | | |
|
| | |\ \ \ |
|
| | | |\ \ \
| | |/ / /
| |/| | | |
|
| | |\ \ \ \ |
|
| | | |\ \ \ \
| | |/ / / /
| |/| | | | |
|
| | |\ \ \ \ \ |
|
| | | |\ \ \ \ \
| | |/ / / / /
| |/| | | | | |
|