经验不足了(
This commit is contained in:
parent
e0f7edccf5
commit
19559728c4
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user