Skip to content

ryuchi311/Word-Scramble-Game-Telegram-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Word Scramble Game Telegram Bot

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.

Python python-telegram-bot Google Gemini AI

โœจ Features

  • ๐ŸŽฏ 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

๐Ÿ“‹ Prerequisites

  • Python 3.8 or higher
  • Telegram Bot Token (from @BotFather)
  • Google Gemini API Key

๐Ÿ”ง Core Dependencies

python-telegram-bot==20.7
google-generativeai==0.8.3
python-dotenv==0.18.0
APScheduler==3.6.3

๐Ÿš€ Quick Start

  1. Clone the repository:
git clone https://github.com/ryuchi311/Word-Scramble-Game-Telegram-Bot.git
cd Word-Scramble-Game-Telegram-Bot
  1. Install required packages:
pip install -r requirements.txt
  1. Set up your environment variables:
    • Create a .env file in the root directory
    • Add your API keys:
GEMINI_API_KEY=your_gemini_api_key_here
TELEGRAM_BOT_TOKEN=your_telegram_token_here
  1. Run the bot:
python wordscramble.py

๐ŸŽฎ Game Commands

Player Commands

  • /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

Admin Commands

  • /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

๐ŸŽฏ Game Rules

  1. Words are 4-15 letters long
  2. Players must register using /joinscramble
  3. First correct answer gets points (1-3 points)
  4. New word appears every 60 seconds
  5. Hints cost points (progressive penalty)
  6. Players can block others using attack power (costs 3 points)
  7. Blocked players get no points for correct answers

๐Ÿ“ Scoring System

  • 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

๐ŸŽจ Features in Detail

Hint System

  • Progressive letter reveal
  • Max hints based on word length
  • Increasing point penalties
  • Group penalty when max hints used

Attack Power

  • Block other players from scoring
  • One-time use per game session
  • Strategic timing element
  • Costs 3 points to use

Word Generation

  • Custom word list in Filipino/Taglish
  • Random scrambling algorithm
  • No repeated words until list exhausted
  • Automatic word cycling

๐Ÿค Contributing

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.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • 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!

๐Ÿ“ž Contact

For support or queries, create an issue in the repository or contact @ryuchi311 on GitHub.


Made with โค๏ธ by Ryuchi | GitHub

About

๐ŸŽฎ A fun Telegram word scramble bot featuring Taglish words, strategic hints, power attacks, and AI-powered definitions! Perfect for Filipino group chats. Includes leaderboard system, hugot quotes, and automatic gameplay.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages