Code Lock Bot
A Telegram bot running a group game about cracking a four-digit password: HP, elimination, and timed regeneration.

About the project
- Stack
- Node.jsnode-telegram-bot-apiMySQLJavaScript
A Telegram bot running a group game about cracking a four-digit password: chat members send in guesses until someone opens the lock.
Every player has a pool of HP: a wrong guess costs 25 points, and at zero the player drops out and waits to recover. HP regenerates on a timer, and the bot announces the return to the game right in the chat.
Player state and the global game status live in MySQL: the moment the password is cracked the game closes for everyone else and the admin gets a message about the winner. Bot replies are formatted with images and HTML markup.
