mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
Serve the BotFather game noitu from the bot's HTTP server under /games/noitu when GAME_BASE_URL is set. /noitu sends the game, Play answers with a signed, expiring link, and the server validates every word against the embedded noitu dictionary (CC BY-SA 4.0), runs the bot opponent and turn timer, and reports the score with setGameScore. Modules can now register game-short-name callbacks and HTTP routes.
11 lines
251 B
Go
11 lines
251 B
Go
// Package web holds the noitu game page: plain HTML, CSS and JavaScript with
|
|
// no build step, embedded into the binary.
|
|
package web
|
|
|
|
import "embed"
|
|
|
|
// FS holds index.html, app.css and app.js.
|
|
//
|
|
//go:embed index.html app.css app.js
|
|
var FS embed.FS
|