diff --git a/keyword.py b/keyword.py index fb624c4..0d7dd05 100644 --- a/keyword.py +++ b/keyword.py @@ -150,7 +150,8 @@ async def send_reply(chat_id, reply_msg, context): while re.search(catch_pattern, re_msg) and count < 20: func_name = re.search(catch_pattern, re_msg).group("str") try: - func_data = import_module(f"plugins.keyword_func.{func_name}").main(context) + module = import_module(f"plugins.keyword_func.{func_name}") + func_data = await module.main(context) except: func_data = "[RE]" re_msg = re_msg.replace("${func_%s}" % func_name, str(func_data)) diff --git a/list.json b/list.json index 6e6d402..01573c8 100644 --- a/list.json +++ b/list.json @@ -362,7 +362,7 @@ }, { "name": "keyword", - "version": "2.2", + "version": "2.21", "section": "chat", "maintainer": "c3b2a", "size": "24.5 kb",