From f450ccac383d741abbd296423f64f63afdbe5510 Mon Sep 17 00:00:00 2001 From: Navy Date: Fri, 18 Sep 2020 03:30:50 +0300 Subject: [PATCH] incomplete stuff, pushing so I can work remotely --- .../settings/moderation/AutoModeration.js | 2 +- .../settings/moderation/LinkFilter.js | 43 +++++ .../settings/moderation/WordFilter.js | 159 ++++++++++++++++++ 3 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 structure/client/components/settings/moderation/LinkFilter.js create mode 100644 structure/client/components/settings/moderation/WordFilter.js diff --git a/structure/client/components/settings/moderation/AutoModeration.js b/structure/client/components/settings/moderation/AutoModeration.js index 6caf51a..7bba2a0 100644 --- a/structure/client/components/settings/moderation/AutoModeration.js +++ b/structure/client/components/settings/moderation/AutoModeration.js @@ -22,7 +22,7 @@ class AutoModerationSetting extends Setting { ], default: { autoModeration: { - enabled: true, + enabled: false, thresholds: { }, diff --git a/structure/client/components/settings/moderation/LinkFilter.js b/structure/client/components/settings/moderation/LinkFilter.js new file mode 100644 index 0000000..c365411 --- /dev/null +++ b/structure/client/components/settings/moderation/LinkFilter.js @@ -0,0 +1,43 @@ +const { Setting } = require('../../../../interfaces/'); + +module.exports = class LinkFilter extends Setting { + + constructor(client) { + + super(client, { + name: 'linkFilter', + module: 'moderation', + aliases: [], + resolve: 'GUILD', + usage: '