feat(semantle): add word2vec guessing game module

Telegram commands /semantle, /semantle_new, /semantle_giveup, /semantle_stats.
Round starts with /random pick from hosted word2sim; each guess scored via
/similarity. Unlimited guesses; solve on case-insensitive exact match.

New env var WORD2SIM_API_URL (wrangler.toml, .env.deploy). Includes
module README and 90 unit tests covering api-client, state, format,
render, and handlers.
This commit is contained in:
2026-04-22 22:05:27 +07:00
parent 0807389a81
commit 08ff72985a
23 changed files with 2661 additions and 2 deletions
+4
View File
@@ -2,3 +2,7 @@
# Copy to .dev.vars (gitignored) and fill in real values.
TELEGRAM_BOT_TOKEN=
TELEGRAM_WEBHOOK_SECRET=
# Optional: override the word2sim base URL for local/self-hosted instances
# (semantle module). Default is https://word2sim.sg.miti99.com.
# WORD2SIM_API_URL=http://localhost:8000