# Webhook

Log all ATM robberies to Discord.

### Setup

```
Step 1: Open Discord
Step 2: Go to logging channel
Step 3: Edit Channel > Integrations > Webhooks
Step 4: Click "New Webhook"
Step 5: Copy Webhook URL
```

### Configure

```
Config.Webhook = {
    enabled = true,
    url = 'https://discord.com/api/webhooks/YOUR_URL_HERE',
    color = 16711680,
    title = 'ATM Robbery Log',
    footer = 'ATM Rob System',
}
```

### Log Contents

| Field      | Description                  |
| ---------- | ---------------------------- |
| Player     | Character name and server ID |
| Tool       | Which tool was used          |
| Reward     | Cash amount earned           |
| Identifier | Player unique identifier     |
| Date       | Timestamp                    |

### Security Alerts

Separate alerts when violations exceed threshold.

| Field      | Description        |
| ---------- | ------------------ |
| Player     | Name and server ID |
| Reason     | Violation type     |
| Count      | Total violations   |
| Identifier | Unique identifier  |
| Date       | Timestamp          |

### Disable

`Config.Webhook = { enabled = false }`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/gameplay/atm-rob/webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
