forked from uniborg/uniborg
Support .unload as an alias for .remove
This commit is contained in:
parent
d6f5514c56
commit
a99848267f
|
@ -31,7 +31,7 @@ async def load_reload(event):
|
||||||
await event.respond(f"Failed to (re)load plugin {shortname}: {e}")
|
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):
|
async def remove(event):
|
||||||
await event.delete()
|
await event.delete()
|
||||||
shortname = event.pattern_match["shortname"]
|
shortname = event.pattern_match["shortname"]
|
||||||
|
|
Loading…
Reference in New Issue