Fix status when bot isn't running

This commit is contained in:
Logan Cusano
2025-08-01 23:37:42 -04:00
parent 11dc4b5792
commit 991cd95a0f

View File

@@ -50,7 +50,7 @@ def create_bot_router(bot_manager: DiscordBotManager):
async def get_status():
status = {
"bot_running": bot_manager.bot is not None and not bot_manager.bot.is_closed(),
"connected_guilds": list(bot_manager.voice_cog.voice_states.keys()),
"connected_guilds": list(bot_manager.voice_cog.voice_states.keys()) if bot_manager.bot else {},
"active_token": bot_manager.token
}
return status