Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Changes since 2026.06.04
- Modmail was refactored to remove the usage of any privileged intents from the modmail bot itself
- Adds an edit button to messages

### Nickname
- Add config option to disable nickname on message

### Report
- The paramter name was changed from report_str to reason

Expand Down
1 change: 1 addition & 0 deletions configuration/config.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"news_channel": "",
"news_country": "US",
"news_cron_config": "0 17 * * *",
"nickname_enable_on_message": true,
"notes_note_bypass": "",
"notes_note_readers": [],
"notes_note_role": [],
Expand Down
4 changes: 4 additions & 0 deletions configuration/config.meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@
"datatype": "CronTab",
"description": "Crontab syntax for executing news events"
},
"nickname_enable_on_message": {
"datatype": "bool",
"description": "Whether or not to enable nickname on message send"
},
"notes_note_bypass": {
"datatype": "list[discord.Role]",
"description": "A list of roles that shouldn't have notes set or the note role assigned"
Expand Down
2 changes: 2 additions & 0 deletions modules/moderation/nickname.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ async def match(self: Self, ctx: commands.Context, content: str) -> bool:
Returns:
bool: If the nickname needs to be changed or not
"""
if not configuration.get_config_entry("nickname_enable_on_message"):
return False
modified_name = format_username(ctx.author.display_name)

# If the name didn't change for the user, do nothing
Expand Down
Loading