@client.tree.command(name="status", description="Check bot system status") @has_role_check(ADMIN_ROLE_ID) async def status(interaction: discord.Interaction): """Show bot health metrics""" embed = discord.Embed(title="🤖 Bot Status", color=discord.Color.green())
# System info embed.add_field(name="Latency", value=f"{round(client.latency * 1000)}ms") embed.add_field(name="Guilds", value=str(len(client.guilds))) embed.add_field(name="Users", value=str(len(client.users))) # Service checks checks = { "RCON": bool(MINECRAFT_RCON_PASSWORD), "Ollama": bool(os.getenv('OLLAMA_URL')), "Pelican": bool(PELICAN_API_KEY) } status_emoji = {True: "✅", False: "❌"} for service, available in checks.items(): embed.add_field(name=service, value=status_emoji[available]) await interaction.response.send_message(embed=embed, ephemeral=True)
No dependencies set.
The note is not visible to the blocked user.
@client.tree.command(name="status", description="Check bot system status")
@has_role_check(ADMIN_ROLE_ID)
async def status(interaction: discord.Interaction):
"""Show bot health metrics"""
embed = discord.Embed(title="🤖 Bot Status", color=discord.Color.green())