From 4ad65c6b1db8527c8b9043936f6508dada7f2503 Mon Sep 17 00:00:00 2001 From: yuki Date: Tue, 7 Oct 2025 23:58:10 -0300 Subject: [PATCH] add server count command --- commands/admin.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/commands/admin.py b/commands/admin.py index 9d163c3..9baa034 100644 --- a/commands/admin.py +++ b/commands/admin.py @@ -19,6 +19,17 @@ def setup(bot: bot.Bot): print(e) await ctx.send(u.error_msg(f"Unknown error:\n`{e}`")) + @bot.command(name="servercount", aliases=["sc"]) + async def servercount(ctx: nerimity.Context): + if not bot.is_owner(ctx.author): + print("returned") + return + + try: await ctx.send(f"I'm in {len(bot.servers)} servers!!") + except Exception as e: + print(e) + await ctx.send(u.error_msg(f"Unknown error:\n`{e}`")) + @bot.command(name="post") async def post(ctx: nerimity.Context, *text: str): print(bot.is_owner(ctx.author))