mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 20:45:06 +08:00
修复一下这个问题
This commit is contained in:
parent
01187cf8d9
commit
6fc85322cd
|
@ -64,7 +64,7 @@ type ScoreCallback = (run_round: number, score: number) => boolean;
|
||||||
async function fight(names: string): Promise<FightResult> {
|
async function fight(names: string): Promise<FightResult> {
|
||||||
// 检查一下输入是否合法
|
// 检查一下输入是否合法
|
||||||
// 比如里面有没有 !test!
|
// 比如里面有没有 !test!
|
||||||
if (names.startsWith("!test!")) {
|
if (names.indexOf("!test!") !== -1) {
|
||||||
throw new Error("你怎么在对战输入里加 !test!(恼)\n${names}");
|
throw new Error("你怎么在对战输入里加 !test!(恼)\n${names}");
|
||||||
}
|
}
|
||||||
return await md5_module.fight(names);
|
return await md5_module.fight(names);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user