# 🎮 GameBot for Hack.Chat 🎮
GameBot is a fun interactive chat bot for [Hack.Chat](https://hack.chat/) that allows users to play games, answer quizzes, and enjoy fun interactions directly in chat channels.
---
## 🚀 Features
### ✨ Luck Games
- `!coin` – Flip a coin
- `!dice` – Roll a dice
- `!lucky` – Random number (1-100)
- `!yesno` – Yes or no answer
- `!8ball <question>` – Magic 8-ball response
- `!fortune` – Get a random fortune
- `!roulette` – Random roulette number
### ⚡ Skill / Guessing Games
- `!guess <1-10>` – Guess a number
- `!higher / !lower` – Higher or lower game
- `!math` – Solve a math problem
- `!scramble` – Unscramble a word
- `!typing` – Test your typing speed
- `!rps <rock|paper|scissors>` – Play Rock Paper Scissors
- `!odd / !even` – Guess if a number is odd or even
- `!reaction` – Reaction speed test
### 😂 Fun Commands
- `!wyr` – Would you rather question
- `!truth` – Truth question
- `!compliment` – Get a random compliment
- `!insult` – Friendly insult
- `!emoji` – Guess the emoji
- `!joke` – Random joke
- `!story` – Mini story generator
### ⚔️ Multiplayer / Challenge Games
- `!duel <nick>` – Challenge another user to a duel
- `!accept` – Accept a duel challenge
- `!battle` – Mini battle game
- `!quiz` – Start a trivia quiz
- `!answer <your answer>` – Answer a quiz question
---
## 🛠 Installation
1. Clone the repository:
```bash
git clone https://github.com/RandomUsernames1/gamebot.git
cd gamebot- Install dependencies:
npm install ws- Run the bot:
node GameBot_Pural.jsThe bot will automatically join the
loungechannel with the nicknameGameBot_Pural.
- Channel: Change the channel by modifying the
CHANNELvariable. - Nickname: Change the bot nickname by modifying the
NICKvariable.
const CHANNEL = 'lounge';
const NICK = 'GameBot_Pural';- The bot connects to the Hack.Chat WebSocket server.
- It listens for chat messages starting with
!and executes commands. - Supports single-player games, multiplayer duels, quizzes, and random fun commands.
- Automatically sends the help menu every 30 minutes.
Feel free to fork this repo and add new commands or games. To contribute:
- Fork the repository
- Create a new branch:
git checkout -b feature-name - Make your changes
- Submit a pull request
This project is open-source and available under the MIT License.
---