Fix status when bot isn't running
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user