Skip to content

open-devhub/hangmanbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 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.

Releases

No releases published

Packages

No packages published