The Answer Book / 答案之书
A digital version of "The Book of Answers" with both English and Chinese pages. Hold a yes/no (or "should I") question in your mind, then flip to a random page.
Language selection (important)
Pick the language that matches the user's question / the language they're chatting in:
- User wrote in English → use
--lang en(or omit, en is default) - User wrote in Chinese → use
--lang zh - Mixed / unclear → default to the language the user used in their most recent message
Never mix languages in a single answer — the book speaks one language per flip.
Usage
# auto English
python3 scripts/get_answer.py
# explicit language
python3 scripts/get_answer.py --lang en
python3 scripts/get_answer.py --lang zh
# specific page (1-100ish, language still required for choice)
python3 scripts/get_answer.py --lang zh 42
python3 scripts/get_answer.py --lang en 42
The script returns a single short answer plus the page number, in the requested language.
How to present the result
- State the page number.
- Show the answer line, prominently.
- Optionally add one short sentence inviting the user to interpret it themselves — don't over-explain.
Extending
Edit scripts/get_answer.py and add new entries to ANSWERS_EN or ANSWERS_ZH. Keep each entry short, declarative, and open to interpretation.