aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Create placeholder value for dm embed content in ext listGravatar mbaruh2022-02-24-1/+1
| | | | Some value is needed to signal the bot a message should be sent for a blocked extension. The value itself will be changed at runtime, but this allows avoiding the bot code delving into the exact API response format.
* Extensions list is ALLOW, not DENYGravatar mbaruh2022-02-23-1/+1
|
* Changed channeld fields to char arrays, merged migrationsGravatar mbaruh2022-02-22-206/+36
| | | | | | - The fields concerning channels were changed to contains strings instead of integers in order to allow specifying channels and categories by name. The migrations were merged into a single migration.
* Patch a minor issue with FilterList field naming in migrationsGravatar D0rs4n2022-02-15-12/+13
|
* Use singular nouns for filter list namesGravatar mbaruh2022-02-15-4/+4
|
* Allow filter descriptions to be nullGravatar mbaruh2022-02-15-2/+2
|
* Merge migrations and correct filter defaults to be all nullGravatar mbaruh2022-01-01-2/+3
|
* Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-01-01-91/+180
|\
| * Merge pull request #637 from python-discord/mbaruh-patch-1Gravatar ChrisJL2021-12-30-29/+29
| |\ | | | | | | Fix faulty regex filters in migration 59
| | * Fix faulty regex filters in migration 59Gravatar Boris Muratov2021-12-31-29/+29
| |/ | | | | Migration 59 populated the filters table with regex filters, some of which were faulty because the `\b` character wasn't escaped. This is fixed in this PR by making all patterns raw strings.
| * Merge pull request #508 from RohanJnr/otn_softdelGravatar Johannes Christ2021-12-28-37/+149
| |\ | | | | | | offtopicnames active attribute and support for PUT and PATCH request
| | * Merge branch 'main' into otn_softdelGravatar Xithrius2021-12-28-110/+126
| | |\ | | |/ | |/|
| * | Merge pull request #636 from python-discord/revert-metricity-changeGravatar Joe Banks2021-12-20-25/+2
| |\ \
| | * | Always include metricity message blocksGravatar Chris Lovering2021-12-16-25/+2
| |/ / | | | | | | | | | Thanks to a recent database maintenance (https://pythondiscord.freshstatus.io/incident/139811) querying out metricity message data is far cheaper. So there is no longer a reason to only fetch blocks if the member has a low message count.
| | * Merge migrations to avoid conflicts.Gravatar RohanJnr2021-12-13-0/+14
| | |
| | * Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-12-13-82/+365
| | |\
| | * | Remove get_queryset() and add new class variable .Gravatar RohanJnr2021-11-06-7/+7
| | | |
| | * | Use framework defination of method.Gravatar RohanJnr2021-11-05-2/+2
| | | |
| | * | Eliminate usage of typing module and update docstrings.Gravatar RohanJnr2021-11-05-6/+4
| | | |
| | * | Update test cases to adhere to recent changes made that removed hosts.Gravatar RohanJnr2021-11-05-2/+2
| | | |
| | * | Fix: Conflicting migrations.Gravatar RohanJnr2021-11-05-0/+14
| | | |
| | * | Pull from upstream/main and resolve conflicts.Gravatar RohanJnr2021-11-05-828/+1921
| | |\ \
| | * \ \ Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-08-20-35/+522
| | |\ \ \
| | * | | | fix CommandError: Conflicting migrations detected.Gravatar RohanJnr2021-07-24-0/+14
| | | | | |
| | * | | | Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-07-24-202/+829
| | |\ \ \ \
| | * | | | | Update docstring.Gravatar RohanJnr2021-07-22-1/+1
| | | | | | |
| | * | | | | Use sets to compare 2 un-ordered lists.Gravatar RohanJnr2021-06-10-9/+10
| | | | | | |
| | * | | | | Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-06-10-83/+363
| | |\ \ \ \ \
| | * | | | | | Use assertListEqual where applicable instead of assertEqual.Gravatar RohanJnr2021-06-10-8/+10
| | | | | | | |
| | * | | | | | fix conflicts?.Gravatar RohanJnr2021-06-10-0/+0
| | |\ \ \ \ \ \
| | | * | | | | | Return a list of ot-names only for GET request only to ↵Gravatar RohanJnr2021-05-31-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bot/off-topic-channel-names
| | * | | | | | | Add tests for active params.Gravatar RohanJnr2021-06-10-4/+34
| | | | | | | | |
| | * | | | | | | Fix bug: Do not force active param.Gravatar RohanJnr2021-06-10-6/+9
| | | | | | | | |
| | * | | | | | | Lint file and remove update() method declaration from ↵Gravatar RohanJnr2021-06-10-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OffTopicChannelNameListSerializer.
| | * | | | | | | Query off topic names based on Active attribute.Gravatar RohanJnr2021-06-04-6/+10
| | | | | | | | |
| | * | | | | | | Return a list of ot-names only for GET request only to ↵Gravatar RohanJnr2021-06-04-2/+19
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | bot/off-topic-channel-names
| | * | | | | | Use ModelViewSet to add support for PUT and PATCH request.Gravatar RohanJnr2021-05-19-8/+5
| | | | | | | |
| | * | | | | | Serialize name and active attribute.Gravatar RohanJnr2021-05-19-12/+1
| | | | | | | |
| | * | | | | | Add active field to OffTopicChannelName model.Gravatar RohanJnr2021-05-19-1/+29
| | | | | | | |
* | | | | | | | Merged infraction and notification settings in JSONGravatar mbaruh2021-12-25-73/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The settings for infracting and notifying the user were merged under one field, which is renamed to "infraction_and_notification". The only place which sends a message in the server by default is the antimalware, the rest try to DM the user first, and antimalware can do the same. This avoids complications which may result from the filtering cog trying to send two messages: one for the defined server message, and another for a failed DM.
* | | | | | | | Correct 'Redirect' FilterLists' default values.Gravatar D0rs4n2021-12-24-1/+1
| | | | | | | |
* | | | | | | | Include 'dm_content ' field under Infraction settings in Filters/FilterListsGravatar D0rs4n2021-12-24-1/+1
| | | | | | | |
* | | | | | | | Patch Filter/FilterList's default values and add new fieldsGravatar D0rs4n2021-12-22-61/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Patch default values, so that further implementations can be performed on the bot side - Add three new fields: "send_alert", and in settings under the "server_message" field: "send_message_text", and "server_message_embed" fields. - Patch documentation, and validators accordingly. - Perform further patches, and minor corrections.
* | | | | | | | Prepare FilterList and Filter models, serializers for the new filter schemaGravatar D0rs4n2021-12-18-96/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename channel scope fields: - "allowed" -> "disabled" eg.: "allowed_channels" -> "disabled_channels" - Rename FilterLists` names: filter_token -> tokens domain_name -> domains guild_invite -> invites file_format -> formats - Patch the docs and validators accordingly.
* | | | | | | | Patch Filter and FilterList Serializer validation logic and representationGravatar D0rs4n2021-12-18-24/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This commit patches an error with the FilterListSerializer validation logic, so that it won't raise an error when an optional field is not present. - It also adds the `enabled` and `delete_messages` fields, to the FilterSerializer's representation - Furthermore the commit introduces minor bug patches, regarding DRF Serializer Fields.
* | | | | | | | Adjust FilterList Schema to group settings into subcategoriesGravatar D0rs4n2021-12-18-48/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This commit patches the FilterList serializer's schema, and puts the settings into the relevant subcategories.
* | | | | | | | Adjust FilterList RepresentationGravatar D0rs4n2021-12-18-6/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From now on the FilterList Serializer will contain a settings field with all the settings that were listed previously, on the model.
* | | | | | | | Adjust Filter JSON SchemaGravatar D0rs4n2021-12-18-30/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From now on the Serializer will have a different JSON representation than the table schema itself, conforming to the format needed on the bot-side.
* | | | | | | | Fix lintingGravatar ks1292021-12-18-7/+19
| | | | | | | |
* | | | | | | | Add merge migrationGravatar ks1292021-12-18-0/+14
| | | | | | | |