From 3b280e23c0dbaa4f30571c2b42681abed9127a9e Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 22 Feb 2024 23:36:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0bmcl=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0/brrs=E5=91=BD=E4=BB=A4=E4=BB=A5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=8E=92=E5=90=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/bmcl.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ica-rs/plugins/bmcl.py b/ica-rs/plugins/bmcl.py index 6195c6b..dd7e549 100644 --- a/ica-rs/plugins/bmcl.py +++ b/ica-rs/plugins/bmcl.py @@ -178,7 +178,13 @@ def bmcl_rank(msg: NewMessage, client: IcaClient, name: Optional[str]) -> None: help = """/bmcl -> dashboard /bmcl rank -> all rank -/bmcl rank -> rank of """ +/bmcl rank -> rank of +/brrs -> rank of +搜索限制: +1- 3 显示全部信息 +4-10 显示状态、名称 +11+ 不显示 +""" def on_message(msg: NewMessage, client: IcaClient) -> None: @@ -194,3 +200,11 @@ def on_message(msg: NewMessage, client: IcaClient) -> None: else: reply = msg.reply_with(help) client.send_message(reply) + elif msg.content.startswith("/brrs"): + if msg.content == "/brrs": + reply = msg.reply_with(help) + client.send_message(reply) + else: + if len(msg.content) > 6: + name = msg.content[6:] + bmcl_rank(msg, client, name)