Compare commits

..

No commits in common. "4669b6a378752289a575fc979a0d32faada5c384" and "bda8a64f2bf5c2748d05f555afa2a4e2d9dbc119" have entirely different histories.

View File

@ -225,7 +225,7 @@ def bmcl_rank(msg: IcaNewMessage, client: IcaClient, name: str) -> None:
r['index'] = i r['index'] = i
# 搜索是否有这个名字的节点 # 搜索是否有这个名字的节点
names: List[str] = [r["name"].lower() for r in rank_data] names: List[str] = [r["name"].lower() for r in rank_data]
finds = [name.lower() in n for n in names] finds = [n.find(name) != -1 for n in names]
if not any(finds): if not any(finds):
reply = msg.reply_with(f"未找到名为{name}的节点") reply = msg.reply_with(f"未找到名为{name}的节点")
client.send_message(reply) client.send_message(reply)