add server count command
This commit is contained in:
parent
feb10e85f3
commit
4ad65c6b1d
1 changed files with 11 additions and 0 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue