Skip to content

JKc66/HangMan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

43 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Telegram Hangman Bot

A feature-rich, interactive Hangman game bot for Telegram with customizable emojis, daily challenges, achievements, and leaderboards!

โœจ Features

  • ๐ŸŽฏ Multiple Word Categories:

    • ๐Ÿพ Animals
    • ๐ŸŒŽ Countries
    • ๐Ÿ” Foods
    • ๐ŸŽ Fruits
    • ๐Ÿฅ• Vegetables
    • ๐ŸŽจ Colors
    • โšฝ๏ธ Sports
    • ๐Ÿง‘โ€๐Ÿ’ผ Occupations
    • ๐Ÿƒ Actions
    • โœจ Adjectives
  • ๐Ÿ“… Daily Challenges:

    • New word every day
    • Special scoring system
    • Daily leaderboard
    • Streak tracking
  • ๐ŸŽจ Customizable Experience:

    • ๐Ÿ’– Lives display emojis
    • โŒจ๏ธ Keyboard button emojis
    • ๐Ÿ”ฅ Difficulty level emojis
  • ๐Ÿ† Achievement System:

    • ๐Ÿ† First Win
    • ๐Ÿ”ฅ 7-Day Streak
    • ๐ŸŽฎ 50 Games Played
    • ๐Ÿ“š 20 Words Solved
    • ๐Ÿ’ฏ Perfect Game
  • ๐Ÿ“Š Comprehensive Statistics:

    • Games played and won
    • Win rate
    • Total score
    • Guessed letters
    • Solved words
    • Current streak
  • ๐Ÿ… Multiple Leaderboards:

    • ๐Ÿ“… Daily Challenge rankings
    • ๐Ÿ† Most Wins
    • ๐Ÿ”ฅ Highest Scores

๐ŸŽฏ Commands

  • /hangman - Start the bot and see available commands
  • /play - Start a new game
  • /stats - View your game statistics
  • /ranking - Check the leaderboards
  • /config - Customize game emojis

๐ŸŽฒ Gameplay Features

  • 3๏ธโƒฃ Difficulty Levels:

    • ๐Ÿ˜Š Easy
    • ๐Ÿ˜ Medium
    • ๐Ÿ˜ˆ Hard
  • ๐Ÿ’ก Hint System

  • โฑ๏ธ Auto-cleanup of inactive games

  • ๐Ÿ”„ Play Again option

  • ๐Ÿ“ Word progress display

  • ๐ŸŽฏ Dynamic keyboard generation

๐Ÿ› ๏ธ Setup Requirements

  1. Python
  2. Required packages:
 pip install -r requirements.txt
  1. Environment variables:
    API_ID - Telegram API ID
    API_HASH - Telegram API Hash
    BOT_TOKEN_HANGMAN - Your bot token from @BotFather
    

๐Ÿ’พ Data Storage

The bot maintains several JSON files for persistent storage:

  • users_config.json - User emoji preferences
  • player_stats.json - Player statistics and achievements
  • daily_challenges.json - Daily challenge data

๐Ÿ”’ Security Features

  • User verification for game interactions
  • Flood control handling
  • Error handling and graceful degradation

๐ŸŽจ Customization Options

Lives Emojis

  • ๐Ÿ’š โค๏ธ ๐Ÿ’”
  • ๐Ÿง”โ€โ™‚๏ธ ๐Ÿ’€ โšฐ๏ธ
  • ๐ŸŒฑ ๐Ÿƒ ๐Ÿ‚
  • ๐Ÿœ ๐Ÿฅข ๐Ÿฅฃ

Keyboard Emojis

  • ๐ŸŽฏ ๐Ÿšซ
  • โœ… โŒ
  • ๐ŸŸข ๐Ÿ”ด
  • ๐Ÿ‘ ๐Ÿ‘Ž
  • And more!

Difficulty Emojis

  • ๐Ÿ˜Š ๐Ÿ˜ ๐Ÿ˜ˆ
  • ๐Ÿ˜ƒ ๐Ÿ˜‘ ๐Ÿ˜ 
  • ๐Ÿคก ๐Ÿ˜• ๐Ÿ˜ก
  • And more!

Made with โค๏ธ for Telegram gamers

About

Hangman game , A telegram bot

Resources

Stars

Watchers

Forks

Languages