Support .reload to reload commands

This commit is contained in:
Lonami 2018-12-19 15:50:12 +01:00
parent ca7b636696
commit 2c75fb25a3
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ from uniborg import util
DELETE_TIMEOUT = 2
@borg.on(util.admin_cmd(r"^\.load (?P<shortname>\w+)$"))
@borg.on(util.admin_cmd(r"^\.(?:re)?load (?P<shortname>\w+)$"))
async def load_reload(event):
await event.delete()
shortname = event.pattern_match["shortname"]