From 775c833f283bab6ad31a897937919be1143f1f16 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong <1040110848@qq.com> Date: Mon, 3 Oct 2022 17:35:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Ranged=20weapons=20query?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qqbot/31-2/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qqbot/31-2/bot.py b/qqbot/31-2/bot.py index 18a6d80..2fdeb6d 100755 --- a/qqbot/31-2/bot.py +++ b/qqbot/31-2/bot.py @@ -29,6 +29,8 @@ def recv_msg(): query = select(m for m in Melee if m.name == name) if query.count() == 0: query = select(m for m in Shield if m.name == name) + if query.count() == 0: + query = select(m for m in Ranged if m.name == name) if query.count() > 0: return { "reply": f"[CQ:image,file=http://localhost:7000/pics/{name}.png,cache=0]",