mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
✌️
This commit is contained in:
parent
cd8800b850
commit
d200b1083d
@ -295,11 +295,15 @@ class GuessingGameContext extends Context {
|
||||
return 'やめました。';
|
||||
}
|
||||
|
||||
const guess = parseInt(query, 10);
|
||||
|
||||
if (isNaN(guess)) {
|
||||
return '整数で推測してください。「やめる」と言うとゲームをやめます。';
|
||||
}
|
||||
|
||||
this.try++;
|
||||
this.emit('updated');
|
||||
|
||||
const guess = parseInt(query, 10);
|
||||
|
||||
if (this.secret < guess) {
|
||||
return `${guess}よりも小さいですね`;
|
||||
} else if (this.secret > guess) {
|
||||
|
Loading…
Reference in New Issue
Block a user