Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation


# 🎮 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
  1. Install dependencies:
npm install ws
  1. Run the bot:
node GameBot_Pural.js

The bot will automatically join the lounge channel with the nickname GameBot_Pural.


⚙ Configuration

  • Channel: Change the channel by modifying the CHANNEL variable.
  • Nickname: Change the bot nickname by modifying the NICK variable.
const CHANNEL = 'lounge';
const NICK = 'GameBot_Pural';

📡 How It Works

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

💡 Contributing

Feel free to fork this repo and add new commands or games. To contribute:

  1. Fork the repository
  2. Create a new branch: git checkout -b feature-name
  3. Make your changes
  4. Submit a pull request

📜 License

This project is open-source and available under the MIT License.


---

About

GameBot built in js, ws

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages