mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 07:37:22 +09:00
Check number
This commit is contained in:
parent
c4610894fb
commit
d426e17a19
@ -85,6 +85,8 @@ export default class GuessingGameModule implements IModule {
|
|||||||
this.ai.subscribeReply(this, msg.userId, msg.isMessage, reply.id);
|
this.ai.subscribeReply(this, msg.userId, msg.isMessage, reply.id);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
if (guess.length > 3) return;
|
||||||
|
|
||||||
const g = parseInt(guess, 10);
|
const g = parseInt(guess, 10);
|
||||||
|
|
||||||
const firsttime = exist.tries.indexOf(g) === -1;
|
const firsttime = exist.tries.indexOf(g) === -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user