fix: 修复返回值获取时的bug

This commit is contained in:
Rock Chin
2023-01-15 21:13:44 +08:00
parent e582780195
commit f06b16437c
2 changed files with 2 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ def process_normal_message(text_message: str, mgr, config, launcher_type: str,
prefix = event.get_return_value("prefix")
if event.get_return_value("reply") is not None:
reply = event.get_return("reply")
reply = event.get_return_value("reply")
if not event.is_prevented_default():
reply = [prefix + text]

View File

@@ -65,7 +65,6 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
processing.append(session_name)
try:
if text_message.startswith('!') or text_message.startswith(""): # 指令
# 触发插件事件
args = {
@@ -86,7 +85,7 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
# 取出插件提交的返回值赋值给reply
if event.get_return_value("reply") is not None:
reply.append(event.get_return("reply"))
reply = event.get_return_value("reply")
if not event.is_prevented_default():
reply = pkg.qqbot.command.process_command(session_name, text_message,