This is a simple bot inspired by Wordle game.
The bot is entirely written in TypeScript. Thanks to grammY Telegram Bot framework. And to datamuse API for word check.
This repo is archived as this code is no longer maintained. I've rewritten the bot in Dart and is available here: HeySreelal/xwordle.
Give a try! @xWordleBot.
- Clone the repo.
- Run
npm install
- Create an .env file with the following variables:
- BOT_TOKEN - the Telegram bot token provided by @BotFather
- LOGS - Telegram channel or group ID where the bot will send logs. (Make sure bot is an admin of the channel or member of the group).
- ADMINS - Telegram User IDs of the admins of the bot.
- Check the .env.sample file for reference.
- Create a Firebase Project and download the Admin SDK creds as
service-account.json
. Save the file insidesrc/config/
- Run
npm run build
- Make sure you have installed the latest version of TypeScript - And to complete the setup run
npm run setup
. - Run
npm start
to start the bot.
You can customize the words to be used by the bot by editing the src/config/words.ts
file.
- Add error handlers.
- Meaning of Words: Thinking of adding
/meaning
command or similar thing to send the meaning of the word at the end of the game daily. - Better Reminders: Currently we're sending reminders only to people who have played yesterday's game and turned on notifications. I think, it's better to nudge the users who haven't played the game for a while like 7 days or more to play.
Show some love by sharing the bot with your friends!