fix: 插件执行时不正确的逻辑

This commit is contained in:
Rock Chin
2023-02-25 20:29:21 +08:00
parent 5044f757fb
commit 28d1f5ead9
3 changed files with 24 additions and 9 deletions
+2
View File
@@ -148,6 +148,8 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
ratelimit.add_usage(session_name)
if reply is not None and len(reply) > 0 and (type(reply[0]) == str or type(reply[0]) == mirai.Plain):
if type(reply[0]) == mirai.Plain:
reply[0] = reply[0].text
logging.info(
"回复[{}]文字消息:{}".format(session_name,
reply[0][:min(100, len(reply[0]))] + (