mirror of
https://github.com/syuilo/ai.git
synced 2024-11-24 22:01:07 +00: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);
|
||||
});
|
||||
} else {
|
||||
if (guess.length > 3) return;
|
||||
|
||||
const g = parseInt(guess, 10);
|
||||
|
||||
const firsttime = exist.tries.indexOf(g) === -1;
|
||||
|
|
Loading…
Reference in a new issue