Support .unload as an alias for .remove

This commit is contained in:
Lonami Exo 2018-05-11 12:45:04 +02:00
parent d6f5514c56
commit a99848267f
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"^\.remove (?P<shortname>\w+)$"))
@borg.on(util.admin_cmd(r"^\.(?:unload|remove) (?P<shortname>\w+)$"))
async def remove(event):
await event.delete()
shortname = event.pattern_match["shortname"]