Implement actual maintenance mode flag in /admin-maintenance #28

Closed
opened 2026-02-20 06:49:52 +00:00 by cal · 1 comment
Owner

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-480

Labels

bug, enhancement, todo

Priority

medium

## 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-480` ## Labels bug, enhancement, todo ## Priority medium
Author
Owner

Fixed in PR #62.

Approach: Added maintenance_mode: bool = False to SBABot.__init__ and registered a global @tree.interaction_check that blocks non-admin users from all slash commands when the flag is set. The /admin-maintenance command now sets self.bot.maintenance_mode directly and logs the state change. Admins retain full access during maintenance.

Fixed in PR #62. **Approach:** Added `maintenance_mode: bool = False` to `SBABot.__init__` and registered a global `@tree.interaction_check` that blocks non-admin users from all slash commands when the flag is set. The `/admin-maintenance` command now sets `self.bot.maintenance_mode` directly and logs the state change. Admins retain full access during maintenance.
cal added the
ai-pr-opened
label 2026-03-03 17:37:39 +00:00
cal closed this issue 2026-03-03 22:08:21 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/major-domo-v2#28
No description provided.