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:
@@ -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…")
|
||||
|
Reference in New Issue
Block a user