mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: print hints
This commit is contained in:
1 parent
a151d2d667
commit
0ba823b432
1 file changed
+5
@@ -120,6 +120,11 @@ async function main() {
|
|||||||
if (data.responses) {
|
if (data.responses) {
|
||||||
await printResponses(data.responses, 60)
|
await printResponses(data.responses, 60)
|
||||||
}
|
}
|
||||||
|
if (data.hints) {
|
||||||
|
for (const hint of data.hints) {
|
||||||
|
console.log(colorize(hint, 'yellow'))
|
||||||
|
}
|
||||||
|
}
|
||||||
if (data.end) {
|
if (data.end) {
|
||||||
console.log(colorize('Quest completed!', 'blue'))
|
console.log(colorize('Quest completed!', 'blue'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user