add server count command

This commit is contained in:
yuki 2025-10-07 23:58:10 -03:00
parent feb10e85f3
commit 4ad65c6b1d

View file

@ -19,6 +19,17 @@ def setup(bot: bot.Bot):
print(e) print(e)
await ctx.send(u.error_msg(f"Unknown error:\n`{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") @bot.command(name="post")
async def post(ctx: nerimity.Context, *text: str): async def post(ctx: nerimity.Context, *text: str):
print(bot.is_owner(ctx.author)) print(bot.is_owner(ctx.author))