🚑 Ranged weapons query

This commit is contained in:
zhbaor 2022-10-03 17:35:17 +08:00
parent f895e100d2
commit 775c833f28

View file

@ -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]",