mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 02:37:57 -05:00
[Mod] Add two new settings to disable name/nickname tracking (#4799)
* Add default settings for name tracking * Add configuration command for name tracking * Check the track names settings before tracking * *grumble* * Fix permissions levels * Update settings.py * Use clean_prefix in inline, and don't use f-strings in `_()` Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -44,7 +44,10 @@ class Mod(
|
||||
):
|
||||
"""Moderation tools."""
|
||||
|
||||
default_global_settings = {"version": ""}
|
||||
default_global_settings = {
|
||||
"version": "",
|
||||
"track_all_names": True,
|
||||
}
|
||||
|
||||
default_guild_settings = {
|
||||
"mention_spam": {"ban": None, "kick": None, "warn": None, "strict": False},
|
||||
@@ -57,6 +60,7 @@ class Mod(
|
||||
"dm_on_kickban": False,
|
||||
"default_days": 0,
|
||||
"default_tempban_duration": 60 * 60 * 24,
|
||||
"track_nicknames": True,
|
||||
}
|
||||
|
||||
default_channel_settings = {"ignored": False}
|
||||
|
||||
Reference in New Issue
Block a user