Skip to content

Dammy8611/MORA

Repository files navigation

MORA Whatsapp BOT

A feature-rich WhatsApp bot powered by Baileys, offering group games, utility commands, and experimental RPG elements.


🚀 Features

  • Group Games: Play Hangman and more directly in your WhatsApp groups.
  • Session Management: Start, list, and stop game sessions with simple commands.
  • Customizable Menu: Choose from multiple menu styles, access owner-only commands, and reload commands on the fly.
  • RPG System (Experimental): Dive into a text-based dungeon crawler with inventory, combat, and shops.
  • System Utilities: Check bot/system info, uptime, and more.
  • Hot Reloading: Instantly reload commands and configuration without restarting the bot.

💬 Commands

Command Description
.say <text> Bot repeats your text
.ping Check bot latency
.menu Show all available commands
.hangman Start a Hangman game in group chat
.listsessions List all active sessions (owner only)
.stopsession <sessionId> Stop a session by ID (owner only)
.sysinfo Show system information
.setmenustyle <1|2|3> Change menu style (owner only)
.reload Reload commands from JSON (owner only)
.rpg Access RPG features (experimental)

⚙️ Setup

  1. Install dependencies:
    npm install
  2. Configure the bot:
    Edit config.json to set your WhatsApp number, owner numbers, bot name, etc.
  3. Start the bot:
    npm start
  4. Pair with WhatsApp:
    On first run, enter your WhatsApp number when prompted and follow the pairing instructions.

📁 File Structure

index.js                # Main bot entry point
lib/commands/           # Command handler modules
sessionStore.js         # In-memory session management
databases/morarpg/      # RPG data (items, players, dungeons, etc.)
config.json             # Bot configuration
lib/                    # Core logic and helpers

🛠️ Development

  • Add new commands in lib/commands/ and register them in lib/commands.json.
  • Owner commands are restricted to numbers in ownerNumbers in config.json.
  • Supports hot-reloading of config and commands.
  • RPG features are under active development and may change frequently.

🙏 Credits

Note: This project is for educational and personal use. Use responsibly and respect WhatsApp's terms of service.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •