Improve response when the solution is correct
This commit is contained in:
parent
e0ecd63712
commit
aec13c1cee
2 changed files with 3 additions and 2 deletions
|
|
@ -82,6 +82,7 @@ const route: ServerRoute = {
|
||||||
status: 2,
|
status: 2,
|
||||||
current: data.current,
|
current: data.current,
|
||||||
incorrect: data.incorrect,
|
incorrect: data.incorrect,
|
||||||
|
solution: data.solution,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ const subcommands: {[index: string]: subcommand} = {
|
||||||
m = `"${meta.args[1].toUpperCase()}" has been guessed already. \n(incorrect: ${d.incorrect}/${config.game.max_incorrect})`;
|
m = `"${meta.args[1].toUpperCase()}" has been guessed already. \n(incorrect: ${d.incorrect}/${config.game.max_incorrect})`;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
m = `Merry chatmanmas! You won! Answer: ${d.current}`;
|
m = `Merry chatmanmas! You won! Answer: ${d.solution}`;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
m = `Booooo, you lost! Answer: ${d.solution}`;
|
m = `Booooo, you lost! Answer: ${d.solution}`;
|
||||||
|
|
@ -113,7 +113,7 @@ const subcommands: {[index: string]: subcommand} = {
|
||||||
m = `"${meta.args[1].toUpperCase()}" has been guessed already. \n(incorrect: ${d.incorrect}/${config.game.max_incorrect})`;
|
m = `"${meta.args[1].toUpperCase()}" has been guessed already. \n(incorrect: ${d.incorrect}/${config.game.max_incorrect})`;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
m = `Merry chatmanmas! You won! Answer: ${d.current}`;
|
m = `Merry chatmanmas! You won! Answer: ${d.solution}`;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
m = `Booooo, you lost! Answer: ${d.solution}`;
|
m = `Booooo, you lost! Answer: ${d.solution}`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue