change plugin load

This commit is contained in:
yanyongyu
2020-08-15 17:22:10 +08:00
parent 1dcc43161a
commit c4a5cfb513
5 changed files with 36 additions and 32 deletions

View File

@ -40,7 +40,7 @@ async def handle_event(bot: Bot, event: Event):
# Check rule
try:
if not Matcher.check_rule(bot, event):
if not await Matcher.check_rule(bot, event):
index += 1
continue
except Exception as e: