Add per-admin permanent non-anonymous mode with one-time per-thread reminder#12
Conversation
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/764cbf79-1761-4755-a35b-e634b8924129 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
|
@copilot in a notification message for thread add a line below on a new line starting with "-#" reminding admins basically the name of the slash command Like to toggle this setting, use ... |
Agent-Logs-Url: https://github.com/r-hensley/DMModbot/sessions/45089631-0efa-4537-ab67-a1707d7c6df0 Co-authored-by: r-hensley <30587035+r-hensley@users.noreply.github.com>
Implemented in The reminder now includes a second line starting with Screenshot: Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
Pull request overview
Adds a per-admin opt-in toggle for permanently non-anonymous moderator replies in report threads, with a one-time in-thread reminder the first time an opted-in admin posts in a given thread.
Changes:
- New
/permanent_non_anonymousslash command incogs/admin.pystoring opted-in admin IDs underguilds[guild_id]["permanent_non_anonymous_mods"], plus instructions update. cogs/modbot.pyDM relay now treats opted-in mods as non-anonymous and sends a one-time reminder per thread, tracked viapermanent_non_anonymous_notified_modsonthread_info.cogs/utils/helper_functions.pyinitializespermanent_non_anonymous_notified_modson new report records.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| cogs/admin.py | Adds the new admin slash command and updates the instructions text. |
| cogs/modbot.py | Applies permanent non-anonymous behavior and per-thread reminder during moderator→user relay. |
| cogs/utils/helper_functions.py | Adds permanent_non_anonymous_notified_mods to new report sessions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This adds a server-admin slash command to opt into permanent non-anonymous replies across all report threads. It also adds per-thread reminder tracking so opted-in admins are notified once (on first message in that thread) that their identity is always disclosed.
Command surface
/permanent_non_anonymous enabled:<bool>incogs/admin.py.guilds[guild_id]["permanent_non_anonymous_mods"].Report-thread state
permanent_non_anonymous_notified_modsincogs/utils/helper_functions.py.Message relay behavior
cogs/modbot.py:{mention}:) regardless of thread-local anonymous default.thread_info["guild_id"]for guild config lookup to avoid thread object coupling.Operator-facing instructions