Skip to content

Latest commit

ย 

History

History
46 lines (36 loc) ยท 1.21 KB

File metadata and controls

46 lines (36 loc) ยท 1.21 KB

๐ŸŽฎ Hangman Bot

A Discord bot that lets you play Hangman in both single-player and multiplayer modes. Challenge yourself or invite friends to compete in guessing words โ€” all powered by Discord.js and JavaScript.

โœจ Features

  • Single Player Mode: Play hangman solo.
  • Multiplayer Mode: Challenge other users in your server.
  • Word Bank: Randomized words for replayability.
  • Interactive Gameplay: Real-time updates with embeds/messages.

๐Ÿ› ๏ธ Tech Stack

  • Discord.js โ€” for Discord API interactions
  • Node.js โ€” runtime environment
  • JavaScript โ€” core language

๐Ÿ“ฆ Installation

  1. Clone the repository:
    git clone https://github.com/open-devhub/hangmanbot.git
    cd hangmanbot
  2. Install dependencies:
    npm install
  3. Create a .env file and add your bot token:
    DISCORD_TOKEN=your-bot-token-here
  4. Start the bot:
    npm start

๐Ÿš€ Usage

  • Start a game:
    /play โ†’ begins a single-player game.
    /challenge <@user> <word> [hint] โ†’ challenge another user.

  • Gameplay:
    Guess letters by selecting from select menu.
    The bot updates the word, lives remaining, and progress.