2
0
mirror of https://github.com/Nick80835/microbot synced 2025-09-05 08:55:51 +00:00

add simple in-memory cmd use stat

This commit is contained in:
Nick80835
2023-10-21 19:58:41 -04:00
parent ffea3fe581
commit 4aae840a8c
3 changed files with 8 additions and 0 deletions

View File

@@ -160,6 +160,11 @@ async def dbstat(event):
)
@ldr.add("usage", owner=True, hide_help=True)
async def usagestat(event):
await event.reply("\n".join(f"{command.pattern}: {command.uses}" for command in ldr.command_handler.incoming_commands if command.uses))
@ldr.add("shutdown", pattern_extra="(f|)", owner=True, hide_help=True)
async def shutdown(event):
await event.reply("Goodbye…")