From a99848267f31970921c8d1882ba19991b6550498 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Fri, 11 May 2018 12:45:04 +0200 Subject: [PATCH] Support .unload as an alias for .remove --- uniborg/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniborg/_core.py b/uniborg/_core.py index 378819f..b62c386 100644 --- a/uniborg/_core.py +++ b/uniborg/_core.py @@ -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"^\.remove (?P\w+)$")) +@borg.on(util.admin_cmd(r"^\.(?:unload|remove) (?P\w+)$")) async def remove(event): await event.delete() shortname = event.pattern_match["shortname"]