Implement actual maintenance mode flag in /admin-maintenance
#28
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#28
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
commands/admin/management.py:479-480— The admin maintenance toggle only shows a UI embed. No flag is set, no commands are blocked, no state changes. Users see success but nothing actually happens.File Locations
commands/admin/management.py:479-480Labels
bug, enhancement, todo
Priority
medium
Fixed in PR #62.
Approach: Added
maintenance_mode: bool = FalsetoSBABot.__init__and registered a global@tree.interaction_checkthat blocks non-admin users from all slash commands when the flag is set. The/admin-maintenancecommand now setsself.bot.maintenance_modedirectly and logs the state change. Admins retain full access during maintenance.