mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-16 02:15:50 +00:00
feat(wordledaily): add the daily Wordle HTML5 game
/wordledaily sends a BotFather game card whose page plays one shared word per day, changing at 07:00 ICT. The server checks guesses, saves each player's board after every guess and keeps NYT-style stats. A win is reported with setGameScore, and in a group one live results message shows everyone's colour grids. /wordledaily_subscribe and /wordledaily_unsubscribe opt a chat or topic in to the 07:00 push: yesterday's recap, opening with the answer and the group's win streak, then today's card. The HTML5 game plumbing that noitu used is now shared in util/htmlgame, and the wordle word list and scoring live in wordle/wordlist.
This commit is contained in:
1 parent
871b4a1042
commit
c0231ceadf
56 files changed
+8013
-306
No files matched your search
@@ -107,6 +107,10 @@ func TestCommandDiscovery_AllPublicCommandsHaveSafeMetadata(t *testing.T) {
|
||||
"tth": "[target...]",
|
||||
"wheelofnames": "<option,...>",
|
||||
"wordle": "[word]",
|
||||
|
||||
"wordledaily": "",
|
||||
"wordledaily_subscribe": "",
|
||||
"wordledaily_unsubscribe": "",
|
||||
}
|
||||
|
||||
menu := botCommandMenu(reg)
|
||||
|
||||
Reference in new issue
Block a user