Check number

This commit is contained in:
syuilo 2018-08-12 23:27:29 +09:00
parent c4610894fb
commit d426e17a19

View file

@ -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;