Alias remove as "disable" too

We're bad at remembering names.
This commit is contained in:
Lonami 2018-09-17 19:14:39 +02:00
parent 9f5eee1420
commit ddcb347527
1 changed files with 1 additions and 1 deletions

View File

@ -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"]