The Discord Hangman Bot is a Java-based Discord bot that allows users to play the classic Hangman game within Discord servers.
- Play Hangman game in Discord chat
- Support for single-player and multiplayer modes
- Customizable word list
- Display hangman ASCII art during the game
- Track player scores and leaderboards
- Responsive and interactive gameplay
- Java
- Discord4J (Discord API wrapper for Java)
- Create a new Discord application and bot on the Discord Developer Portal.
- Obtain the bot token and add the bot to your Discord server.
- Clone this repository to your local machine.
- Replace
YOUR_BOT_TOKEN_HERE
in the code with your actual bot token. - Compile the Java code and run the bot.
- Type a command to start a new Hangman game in a Discord channel (
!hangman start
). - Guess letters to uncover the secret word.
- Guess the entire word before the hangman is fully drawn.
- Win or lose based on your guesses and speed.
- Keep track of your score and compete with other players on the leaderboard.
- Customize the word list by modifying the
words.txt
file. - Adjust game settings and commands according to your preferences by modifying the source code.
src
: Source code for the Discord Hangman Botwords.txt
: Word list for Hangman gameREADME.md
: Project documentationLICENSE
: Project license
This project is licensed under the MIT License. See the LICENSE
file for details.