A fun and interactive Telegram bot that hosts word scramble games with unique features like hints, power attacks, and Taglish definitions! Perfect for group chats and Filipino language enthusiasts.
- ๐ฏ Random word scrambling with Filipino/Taglish words
- ๐ Automatic new words every 60 seconds
- ๐ก Progressive hint system with strategic point costs
- โ๏ธ Power attack system to block other players
- ๐ Automatic Taglish definitions and hugot quotes using Google Gemini AI
- ๐ Leaderboard system with points tracking
- ๐จ Rich formatting and emoji feedback
- ๐ Admin controls for game management
- Python 3.8 or higher
- Telegram Bot Token (from @BotFather)
- Google Gemini API Key
python-telegram-bot==20.7
google-generativeai==0.8.3
python-dotenv==0.18.0
APScheduler==3.6.3
- Clone the repository:
git clone https://github.com/ryuchi311/Word-Scramble-Game-Telegram-Bot.git
cd Word-Scramble-Game-Telegram-Bot- Install required packages:
pip install -r requirements.txt- Set up your environment variables:
- Create a
.envfile in the root directory - Add your API keys:
- Create a
GEMINI_API_KEY=your_gemini_api_key_here
TELEGRAM_BOT_TOKEN=your_telegram_token_here
- Run the bot:
python wordscramble.py/wordscramble- Show game info and rules/joinscramble- Join the game/hint- Get a hint (costs points)/leaderboard- View top players/attack username- Block a player from earning points
/start_game- Start a new game session/stop_game- End current game and show winners/resetpoints- Reset all player points/reload_words- Reload word list
- Words are 4-15 letters long
- Players must register using
/joinscramble - First correct answer gets points (1-3 points)
- New word appears every 60 seconds
- Hints cost points (progressive penalty)
- Players can block others using attack power (costs 3 points)
- Blocked players get no points for correct answers
- Correct answer: +1 to 3 points
- Using hint: -1 point (increases with each hint)
- Using attack: -3 points
- Getting blocked: 0 points for correct answer
- Progressive letter reveal
- Max hints based on word length
- Increasing point penalties
- Group penalty when max hints used
- Block other players from scoring
- One-time use per game session
- Strategic timing element
- Costs 3 points to use
- Custom word list in Filipino/Taglish
- Random scrambling algorithm
- No repeated words until list exhausted
- Automatic word cycling
Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to python-telegram-bot for the amazing framework
- Google Gemini AI for providing word definitions
- All contributors and players who make this game fun!
For support or queries, create an issue in the repository or contact @ryuchi311 on GitHub.
Made with โค๏ธ by Ryuchi | GitHub