aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2022-11-01 22:52:46 +0200
committerGravatar mbaruh <[email protected]>2022-11-01 22:52:46 +0200
commit00c6dbc194f8e45060af235702356ea581b2bc2f (patch)
tree738a5465e2b1da8291b40fd48fb75693250e52f5
parentPrettify f and fl describe output (diff)
Remove old filtering constants
-rw-r--r--bot/constants.py36
-rw-r--r--config-default.yml97
2 files changed, 0 insertions, 133 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 51104ecb7..8a2571a98 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -213,30 +213,6 @@ class Redis(metaclass=YAMLGetter):
use_fakeredis: bool # If this is True, Bot will use fakeredis.aioredis
-class Filter(metaclass=YAMLGetter):
- section = "filter"
-
- filter_domains: bool
- filter_everyone_ping: bool
- filter_invites: bool
- filter_zalgo: bool
- watch_regex: bool
- watch_rich_embeds: bool
-
- # Notifications are not expected for "watchlist" type filters
-
- notify_user_domains: bool
- notify_user_everyone_ping: bool
- notify_user_invites: bool
- notify_user_zalgo: bool
-
- offensive_msg_delete_days: int
- ping_everyone: bool
-
- channel_whitelist: List[int]
- role_whitelist: List[int]
-
-
class Cooldowns(metaclass=YAMLGetter):
section = "bot"
subsection = "cooldowns"
@@ -580,18 +556,6 @@ class Metabase(metaclass=YAMLGetter):
max_session_age: int
-class AntiSpam(metaclass=YAMLGetter):
- section = 'anti_spam'
-
- cache_size: int
-
- clean_offending: bool
- ping_everyone: bool
-
- punishment: Dict[str, Dict[str, int]]
- rules: Dict[str, Dict[str, int]]
-
-
class BigBrother(metaclass=YAMLGetter):
section = 'big_brother'
diff --git a/config-default.yml b/config-default.yml
index c28e43070..4407177d9 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -327,45 +327,6 @@ guild:
filters: 926442964463521843
-filter:
- # What do we filter?
- filter_domains: true
- filter_everyone_ping: true
- filter_invites: true
- filter_zalgo: false
- watch_regex: true
- watch_rich_embeds: true
-
- # Notify user on filter?
- # Notifications are not expected for "watchlist" type filters
- notify_user_domains: false
- notify_user_everyone_ping: true
- notify_user_invites: true
- notify_user_zalgo: false
-
- # Filter configuration
- offensive_msg_delete_days: 7 # How many days before deleting an offensive message?
- ping_everyone: true
-
- # Censor doesn't apply to these
- channel_whitelist:
- - *ADMINS
- - *BB_LOGS
- - *DEV_LOG
- - *MESSAGE_LOG
- - *MOD_LOG
- - *STAFF_LOUNGE
-
- role_whitelist:
- - *ADMINS_ROLE
- - *HELPERS_ROLE
- - *MODS_ROLE
- - *OWNERS_ROLE
- - *PY_COMMUNITY_ROLE
- - *SPRINTERS
- - *PY_PARTNER_ROLE
-
-
keys:
github: !ENV "GITHUB_API_KEY"
site_api: !ENV "BOT_API_KEY"
@@ -398,64 +359,6 @@ urls:
github_bot_repo: "https://github.com/python-discord/bot"
-anti_spam:
- cache_size: 100
-
- # Clean messages that violate a rule.
- clean_offending: true
- ping_everyone: true
-
- punishment:
- remove_after: 600
- role_id: *MUTED_ROLE
-
- rules:
- attachments:
- interval: 10
- max: 6
-
- burst:
- interval: 10
- max: 7
-
- # Burst shared it (temporarily) disabled to prevent
- # the bug that triggers multiple infractions/DMs per
- # user. It also tends to catch a lot of innocent users
- # now that we're so big.
- # burst_shared:
- # interval: 10
- # max: 20
-
- chars:
- interval: 5
- max: 4_200
-
- discord_emojis:
- interval: 10
- max: 20
-
- duplicates:
- interval: 10
- max: 3
-
- links:
- interval: 10
- max: 10
-
- mentions:
- interval: 10
- max: 5
-
- newlines:
- interval: 10
- max: 100
- max_consecutive: 10
-
- role_mentions:
- interval: 10
- max: 3
-
-
metabase:
username: !ENV "METABASE_USERNAME"
password: !ENV "METABASE_PASSWORD"