mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 03:19:17 +00:00
parent
d877040d99
commit
fe1782dab0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user