A fun and competitive Wordle-style game that you can play directly on Telegram!
- Play the Wordle-inspired word guessing game in private chats or group chats.
- Supports multiplayer gameplay in groups, with admin tools for game management.
- Keep track of scores with group and global leaderboards.
- Commands to view personal scores and leaderboard rankings filtered by time (today, week, month, etc.).
- Flexible game settings: customizable limits for attempts and group admin permissions.
- Start a game: Use the
/new
command in a group or private chat. - Guess the word: Players try to guess a random 5-letter word.
- Hints after each guess:
- 🟩 - Correct letter in the right spot.
- 🟨 - Correct letter in the wrong spot.
- 🟥 - Letter not in the word.
- The game ends when:
- The word is correctly guessed, or
- Maximum number of guesses (30) is reached.
- The first person to guess the word correctly wins!
- /new - Start a new game.
- /end - End the current game (admins only in group chats).
- /help - Get help with commands and game rules.
- /leaderboard - View leaderboards for the group or globally. Example:
/leaderboard global week
- /myscore - View your score. Example:
/myscore group all
- /stats - View bot usage stats (admin users only).
- Node.js
- Telegram Bot Token (create one via BotFather)
- PostgreSQL or SQLite database
-
Clone the repository:
git clone https://github.com/binamralamsal/WordSeek cd WordSeek
-
Install dependencies:
bun install
-
Configure the environment variables:
- Create a
.env
file:BOT_TOKEN=your-telegram-bot-token DATABASE_URL=your-database-url
- Create a
-
Run the bot:
- Start the bot in development mode:
bun run dev
- Or run in production:
bun run start
- Start the bot in development mode:
- grammy: Telegram Bot API framework.
- Drizzle ORM: Simplified database queries.
- PostgreSQL: Persistent storage for game data.
- Bun.js: Blazing fast JavaScript runtime.
- Zod: Schema validation.
- Try the Bot:
- WordSeek I (Main bot)
- WordSeek II (Use this if the main bot is busy)
- Join the Official Group: Word Guesser Group - Play the game, discuss strategies, and share feedback.
- Support the Developer: Binamra Bots Channel
- Contact the Developer: Suggestions? Reach out on Telegram: @binamralamsal
We welcome contributions to enhance the bot! Here's how you can help:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.