经验不足了(

This commit is contained in:
shenjack 2024-09-24 23:42:32 +08:00
parent e0f7edccf5
commit 19559728c4
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -147,7 +147,7 @@ def run_fights(msg: ReciveMessage, client) -> None:
return return
# 以换行分割 # 以换行分割
fights = content.split("\n") fights = content.split("\n")
def dispatch_msg(msg: ReciveMessage, client) -> None: def dispatch_msg(msg: ReciveMessage, client) -> None:
@ -155,12 +155,17 @@ def dispatch_msg(msg: ReciveMessage, client) -> None:
return return
if msg.content == HELP_CMD: if msg.content == HELP_CMD:
client.send_message(msg.reply_with(HELP_MSG)) client.send_message(msg.reply_with(HELP_MSG))
if msg.content.startswith(EVAL_CMD) or msg.content.startswith(EVAL_SIMPLE_CMD): if msg.content.startswith(EVAL_CMD):
eval_fight(msg, client) eval_fight(msg, client)
elif msg.content.startswith(FIGHT_CMD): elif msg.content.startswith(FIGHT_CMD):
run_fights(msg, client) run_fights(msg, client)
elif msg.content.startswith(CONVERT_CMD): elif msg.content.startswith(CONVERT_CMD):
convert_name(msg, client) convert_name(msg, client)
elif msg.content.startswith(EVAL_SIMPLE_CMD):
# 放在最后, 避免覆盖 前面的命令
# 同时过滤掉别的 /namer-xxxxx
if msg.content.find(" ") == -1:
return
def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None: def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None: