Fix \!backup command not working - module loading issue
Fixed BackupCommands module not being loaded into the bot system: - Added BackupCommands to modules/__init__.py imports and __all__ list - Added BackupCommands to module loading in run_bot_with_reconnect.py - Fixed constructor signature to match BaseModule requirements All 5 backup commands now properly registered and available to admin users: - \!backup - Create manual database backups - \!restore - Restore from backup files - \!backups - List available backups - \!backup_stats - Show backup system statistics - \!backup_cleanup - Clean up old backups based on retention policy 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3efefb6632
commit
e920503dbd
3 changed files with 57 additions and 25 deletions
|
|
@ -11,6 +11,7 @@ from .inventory import Inventory
|
|||
from .gym_battles import GymBattles
|
||||
from .team_builder import TeamBuilder
|
||||
from .npc_events import NPCEventsModule
|
||||
from .backup_commands import BackupCommands
|
||||
|
||||
__all__ = [
|
||||
'CoreCommands',
|
||||
|
|
@ -22,5 +23,6 @@ __all__ = [
|
|||
'Inventory',
|
||||
'GymBattles',
|
||||
'TeamBuilder',
|
||||
'NPCEventsModule'
|
||||
'NPCEventsModule',
|
||||
'BackupCommands'
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue