From f3c6d9c02bd56e2322ff19f43ee31b08d2713235 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Tue, 16 May 2023 15:06:39 +0800 Subject: [PATCH] fix: draw command --- cores/qqbot/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index 38e1dc24c..63af5b4e0 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -644,9 +644,9 @@ def oper_msg(message, if command_result[0]: # 是否是画图指令 - if isinstance(command_result, list) and len(command_result) == 3 and command_result[2] == 'draw': + if isinstance(command_result[1], list) and len(command_result) == 3 and command_result[2] == 'draw': for i in command_result[1]: - send_message(platform, message, i[0], msg_ref=msg_ref, image=i[0], gocq_loop=gocq_loop, qqchannel_bot=qqchannel_bot, gocq_bot=gocq_bot) + send_message(platform, message, i, msg_ref=msg_ref, image=i, gocq_loop=gocq_loop, qqchannel_bot=qqchannel_bot, gocq_bot=gocq_bot) else: try: send_message(platform, message, command_result[1], msg_ref=msg_ref, gocq_loop=gocq_loop, qqchannel_bot=qqchannel_bot, gocq_bot=gocq_bot)