From 2c75fb25a32d006dd7c1dc2b9be0043e2502ca89 Mon Sep 17 00:00:00 2001 From: Lonami Date: Wed, 19 Dec 2018 15:50:12 +0100 Subject: [PATCH] Support .reload to reload commands --- uniborg/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniborg/_core.py b/uniborg/_core.py index 4679ec3..7475028 100644 --- a/uniborg/_core.py +++ b/uniborg/_core.py @@ -10,7 +10,7 @@ from uniborg import util DELETE_TIMEOUT = 2 -@borg.on(util.admin_cmd(r"^\.load (?P\w+)$")) +@borg.on(util.admin_cmd(r"^\.(?:re)?load (?P\w+)$")) async def load_reload(event): await event.delete() shortname = event.pattern_match["shortname"]