# 🚀 Quick Setup Guide

## Step 1: Get Your Discord Bot Token

1. Go to https://discord.com/developers/applications
2. Click "New Application" and name it (e.g., "Domain Scraper")
3. Click on "Bot" in the left sidebar
4. Click "Add Bot"
5. Under TOKEN, click "Copy"
6. **IMPORTANT**: Go to "Privileged Gateway Intents" and enable:
   - ✅ Message Content Intent

## Step 2: Invite Bot to Your Server

1. Still in the Developer Portal, click "OAuth2" → "URL Generator"
2. Select these scopes:
   - ✅ bot
3. Select these permissions:
   - ✅ Send Messages
   - ✅ Embed Links  
   - ✅ Read Message History
   - ✅ Read Messages/View Channels
4. Copy the generated URL at the bottom
5. Open it in your browser and invite the bot to your server

## Step 3: Configure the Bot

1. Open `config.json` 
2. Replace `YOUR_DISCORD_BOT_TOKEN_HERE` with your actual token:
```json
{
  "discordToken": "MTIzNDU2Nzg5MDEyMzQ1Njc4OQ.AbCdEf.GhIjKlMnOpQrStUvWxYz1234567890",
  "intervalMinutes": 1,
  "saveToFile": true,
  "outputFile": "domains.json",
  "debug": false,
  "saveRawHtml": false
}
```

## Step 4: Install & Run

```bash
# Install dependencies
npm install

# Start the bot
npm run bot
```

You should see:
```
=== Discord Bot Ready ===
Logged in as YourBotName#1234
Bot is in 1 server(s)
Scrape interval: 1 minute(s)
=========================
```

## Step 5: Test It!

In your Discord server, type:
```
!ex
```

The bot will show you the latest scraped domains! 🎉

## Commands

- `!ex` - Show first page of domains
- `!ex 2` - Show page 2
- `!status` - Bot statistics
- `!help` - Show all commands

## Troubleshooting

**Bot doesn't respond?**
- Make sure "Message Content Intent" is enabled (Step 1)
- Check the bot has permission to read/send messages in the channel
- Look for error messages in your terminal

**"Invalid Token" error?**
- Double-check you copied the entire token
- Make sure no extra spaces in config.json

**No domains found?**
- Enable debug: `"debug": true` in config.json
- Wait for the first scrape to complete (1 minute)

---

Need more help? Check **README-DISCORD.md** for detailed documentation!
