forked from uniborg/uniborg
Alias remove as "disable" too
We're bad at remembering names.
This commit is contained in:
parent
9f5eee1420
commit
ddcb347527
|
@ -31,7 +31,7 @@ async def load_reload(event):
|
|||
await event.respond(f"Failed to (re)load plugin {shortname}: {e}")
|
||||
|
||||
|
||||
@borg.on(util.admin_cmd(r"^\.(?:unload|remove) (?P<shortname>\w+)$"))
|
||||
@borg.on(util.admin_cmd(r"^\.(?:unload|disable|remove) (?P<shortname>\w+)$"))
|
||||
async def remove(event):
|
||||
await event.delete()
|
||||
shortname = event.pattern_match["shortname"]
|
||||
|
|
Loading…
Reference in New Issue