Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

51 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฉ WSKUSERBOT

โšก WordSeek Auto-Solver for Telegram

Typing SVG

Stars Forks Issues Repo Size

Python Pyrogram MongoDB Docker


๐ŸŽฏ What is WSKUSERBOT?

WSKUSERBOT is a powerful Telegram userbot that automatically plays and wins the @WordSeekBot word game. It uses an entropy-based smart solver algorithm that picks the optimal guess to split remaining candidates most evenly โ€” winning games in the fewest possible attempts.

๐Ÿ’ก Think of it as Wordle on autopilot, but for Telegram's WordSeek game!

โœจ Features

๐Ÿง  Smart Solver

  • Entropy-based word elimination algorithm
  • Supports 4, 5, and 6 letter word modes
  • Pre-cached word lists for instant solving
  • Optimal starter word selection

๐Ÿค– Auto Play

  • Auto-starts games with hupp command
  • Auto-reads WordSeek responses
  • Auto-sends optimal guesses
  • Configurable delay between guesses

๐Ÿ“Š Stats & Tracking

  • Win/loss tracking per user
  • Streak & best streak records
  • One-attempt win counter
  • Export stats to file

๐Ÿ‘ฅ Multi-User Support

  • Multiple user clients simultaneously
  • Per-user session management
  • MongoDB-powered persistence
  • Owner-controlled bot management

๐Ÿš€ Deployment

๐Ÿ“‹ Prerequisites

Requirement Details
๐Ÿ Python 3.11+
๐Ÿ”‘ Telegram API Get from my.telegram.org
๐Ÿค– Bot Token Get from @BotFather
๐Ÿƒ MongoDB Free cluster at MongoDB Atlas

โšก Quick Setup

# 1๏ธโƒฃ Clone the repository
git clone https://github.com/SUDEEPBOTS/WSKUSERBOT.git
cd WSKUSERBOT

# 2๏ธโƒฃ Install dependencies
pip install -r requirements.txt

# 3๏ธโƒฃ Configure environment
cp sample.env .env

๐Ÿ”ง Environment Variables

API_ID=12345                    # Telegram API ID
API_HASH=your_api_hash          # Telegram API Hash
BOT_TOKEN=123456:ABC-xyz        # Bot Token from BotFather
MONGO_URI=mongodb+srv://...     # MongoDB Connection URI
OWNER_ID=123456789              # Your Telegram User ID

โ–ถ๏ธ Run the Bot

# Run directly
bash start

# Or with Docker ๐Ÿณ
docker build -t wskuserbot .
docker run -d --env-file .env wskuserbot

๐Ÿ’ฌ Commands

๐Ÿ”’ Private Chat (DM)

Command Description
/start Start the bot & get welcome message
.mode [4/5/6] Switch word length mode
.delay [seconds] Set delay between guesses
.stats View your game statistics
.export Export stats as text file
.das Show current session info
.total View word count per mode
.reset confirm Reset all your stats
.id Get your Telegram ID
.logout Delete session & stop games

๐Ÿ‘ฅ Group Chat

Command Description
hupp Start auto-playing in this group
bye Stop the current game

๐Ÿ—๏ธ Project Structure

WSKUSERBOT/
โ”œโ”€โ”€ ๐Ÿ“„ config.py              # Environment config loader
โ”œโ”€โ”€ ๐Ÿณ Dockerfile             # Docker container setup
โ”œโ”€โ”€ ๐Ÿ“‹ requirements.txt       # Python dependencies
โ”œโ”€โ”€ ๐Ÿ“‹ sample.env             # Example environment file
โ”œโ”€โ”€ โ–ถ๏ธ  start                  # Startup script
โ”‚
โ””โ”€โ”€ WSKUSERBOT/               # Main package
    โ”œโ”€โ”€ ๐Ÿ”ง __init__.py        # Pyrogram client init
    โ”œโ”€โ”€ ๐Ÿš€ __main__.py        # Bot entry point
    โ”œโ”€โ”€ ๐Ÿ“Š logging.py         # Colored logging setup
    โ”œโ”€โ”€ ๐Ÿ‘ฅ user_manager.py    # Multi-user client manager
    โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ start.jpeg         # Welcome image
    โ”‚
    โ””โ”€โ”€ plugins/              # Bot plugins
        โ”œโ”€โ”€ ๐ŸŽฎ game.py        # Game session handler
        โ”œโ”€โ”€ ๐Ÿงฉ solver.py      # Entropy-based word solver
        โ”œโ”€โ”€ โš™๏ธ commands.py     # Command handlers
        โ””โ”€โ”€ ๐Ÿ‘‹ start.py       # /start command

๐Ÿง  How the Solver Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚               ENTROPY SOLVER                     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                  โ”‚
โ”‚  1. ๐Ÿ“š Load word list (4/5/6 letters)           โ”‚
โ”‚  2. ๐ŸŽฏ Pick optimal starter (letter frequency)  โ”‚
โ”‚  3. ๐Ÿ“จ Send guess to WordSeek                   โ”‚
โ”‚  4. ๐Ÿ“– Read color-coded feedback                โ”‚
โ”‚  5. ๐Ÿงฎ Calculate entropy for each candidate     โ”‚
โ”‚  6. โœ‚๏ธ  Eliminate impossible words               โ”‚
โ”‚  7. ๐Ÿ”„ Pick next guess (max entropy split)      โ”‚
โ”‚  8. ๐Ÿ† Repeat until solved!                     โ”‚
โ”‚                                                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The solver picks the guess that maximizes information gain โ€” splitting the remaining word pool as evenly as possible across all possible feedback patterns.

๐Ÿ›ก๏ธ Tech Stack

Tech Stack

Technology Purpose
Pyrofork Telegram MTProto client (Pyrogram fork)
Motor Async MongoDB driver
TgCrypto Fast Telegram encryption
aiohttp Async HTTP requests
Docker Containerized deployment

๐Ÿ“œ License

This project is open source and available under the MIT License.


โญ Star this repo if you found it useful!

Footer

GitHub Telegram

About

WSKUSERBOT - A smart Telegram userbot that auto-plays & wins WordSeek games using entropy-based solver algorithm

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages