mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
修复bmcl插件中的bug,现在可以正确处理消息内容中的名称参数。
This commit is contained in:
parent
3b280e23c0
commit
727e5f84dd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user