mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2025-02-23 13:04:21 +08:00
hmmmm
This commit is contained in:
parent
e6b794173f
commit
38d9988cdc
|
@ -68,12 +68,14 @@ def convert_name(msg: ReciveMessage, client) -> None:
|
||||||
|
|
||||||
def eval_fight(msg: ReciveMessage, client) -> None:
|
def eval_fight(msg: ReciveMessage, client) -> None:
|
||||||
if msg.content.find("\n") == -1:
|
if msg.content.find("\n") == -1:
|
||||||
client.send_message(
|
# 在判断一下是不是 /xxx xxxx
|
||||||
msg.reply_with(
|
if msg.content.find(" ") != -1:
|
||||||
f"请使用 {EVAL_PREFIX} 命令,然后换行输入名字,例如:\n{EVAL_PREFIX}\n张三\n李四\n王五\n"
|
client.send_message(
|
||||||
|
msg.reply_with(
|
||||||
|
f"请使用 {EVAL_PREFIX} 命令,然后换行输入名字,例如:\n{EVAL_PREFIX}\n张三\n李四\n王五\n"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
return
|
||||||
return
|
|
||||||
# 去掉 prefix
|
# 去掉 prefix
|
||||||
names = msg.content[len(EVAL_PREFIX) :]
|
names = msg.content[len(EVAL_PREFIX) :]
|
||||||
# 去掉第一个 \n
|
# 去掉第一个 \n
|
||||||
|
|
Loading…
Reference in New Issue
Block a user