mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
消息你得发出去啊
This commit is contained in:
parent
e57cc7f3f0
commit
2540ba3ee2
|
@ -146,14 +146,13 @@ def bmcl_rank(msg: NewMessage, client: IcaClient, name: Optional[str]) -> None:
|
||||||
if len(counts) > 3:
|
if len(counts) > 3:
|
||||||
if len(counts) > 10:
|
if len(counts) > 10:
|
||||||
reply = msg.reply_with(f"搜索|{name}|到{len(counts)}个节点, 请用更精确的名字")
|
reply = msg.reply_with(f"搜索|{name}|到{len(counts)}个节点, 请用更精确的名字")
|
||||||
client.send_message(reply)
|
|
||||||
else:
|
else:
|
||||||
# 4~10 个节点 只显示名称和次序
|
# 4~10 个节点 只显示名称和次序
|
||||||
find_msg = [f"{r['name']}-No.{i+1}" for i, r in enumerate(ranks) if finds[i]]
|
find_msg = [f"{r['name']}-No.{i+1}" for i, r in enumerate(ranks) if finds[i]]
|
||||||
find_msg = "\n".join(find_msg)
|
find_msg = "\n".join(find_msg)
|
||||||
report_msg = f"OpenBMCLAPI 面板v{_version_}-搜索|{name}|\n{find_msg}\n"
|
report_msg = f"OpenBMCLAPI 面板v{_version_}-搜索|{name}|\n{find_msg}\n"
|
||||||
reply = msg.reply_with(report_msg)
|
reply = msg.reply_with(report_msg)
|
||||||
client.info(report_msg)
|
client.send_message(reply)
|
||||||
return
|
return
|
||||||
rank_msgs = []
|
rank_msgs = []
|
||||||
for i, find in enumerate(finds):
|
for i, find in enumerate(finds):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user