mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2025-04-20 10:39:55 +08:00
Compare commits
No commits in common. "4669b6a378752289a575fc979a0d32faada5c384" and "bda8a64f2bf5c2748d05f555afa2a4e2d9dbc119" have entirely different histories.
4669b6a378
...
bda8a64f2b
|
@ -225,7 +225,7 @@ def bmcl_rank(msg: IcaNewMessage, client: IcaClient, name: str) -> None:
|
|||
r['index'] = i
|
||||
# 搜索是否有这个名字的节点
|
||||
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):
|
||||
reply = msg.reply_with(f"未找到名为{name}的节点")
|
||||
client.send_message(reply)
|
||||
|
|
Loading…
Reference in New Issue
Block a user