修复bmcl插件中的bug,现在可以正确处理消息内容中的名称参数。

This commit is contained in:
shenjack 2024-02-22 23:43:59 +08:00
parent 3b280e23c0
commit 727e5f84dd
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -205,6 +205,7 @@ def on_message(msg: NewMessage, client: IcaClient) -> None:
reply = msg.reply_with(help) reply = msg.reply_with(help)
client.send_message(reply) client.send_message(reply)
else: else:
if len(msg.content) > 6: name = msg.content.split(" ")
name = msg.content[6:] if len(name) > 1:
name = name[1]
bmcl_rank(msg, client, name) bmcl_rank(msg, client, name)