# Webhooks (logs)

### The webhooks can be found in the config file of anticheat resource&#x20;

```lua
Config.WebhookStatusAnticheat = '' -- Status resource
Config.WebhookWarning = '' -- Warning
Config.WebhookEntities = '' -- Entities
Config.WebhookExplosions = '' -- Explosions
Config.WebhookKick = '' -- Kick
Config.WebhookBan = '' -- Ban
Config.WebhookBanVideo = '' -- Ban video evidence
Config.WebhookConnect = '' -- Connect
Config.WebhookDisconnect = '' -- Disconnect
Config.WebhookConnectWarning = '' -- Connect warning
Config.WebhookSuspiciousKills = '' -- Suspicious kills
Config.WebhookKillsAndDeaths = '' -- Kills and deaths
Config.WebhookBackdoor = '' -- Backdoor
```

### What is a webhook?

{% code overflow="wrap" %}

```
A webhook is an URL that you can create in your discord channel on Integrations section (found in Edit Channel) where the anticheat resource sends messages to the specific discord channel in order to monitor the anticheat activity.
```

{% endcode %}

### How can I create a webhook?

{% code overflow="wrap" %}

```
You can create a webhook on your discord following the next steps:
1. Create Category
2. Enter your category name (Example: Anticheat Logs)
3. Create Channel
4. Enter your channel name (Example: connect)
5. Right click on your created channel and select Edit Channel
6. Select Integrations section
7. Press Create Webhook button
8. Select the new webhook created
9. Enter your bot name (Example: Reason Anticheat)
10. Copy Webhook URL
12. Paste Webhook URL to one of the webhook file (For the connect example, you have to add the 13. Webhook URL between the quotation marks of cfg.WebhookConnect)
```

{% endcode %}

### Examples

```lua
Config.WebhookStatusAnticheat = 'https://discord.com/api/webhooks/1234/abcd'
Config.WebhookWarning = 'https://discord.com/api/webhooks/2345/bcde'
Config.WebhookEntities = 'https://discord.com/api/webhooks/3456/cdef'
Config.WebhookExplosions = 'https://discord.com/api/webhooks/3457/abef'
Config.WebhookKick = 'https://discord.com/api/webhooks/4567/defg'
Config.WebhookBan = 'https://discord.com/api/webhooks/5678/efgh'
Config.WebhookBanVideo = 'https://discord.com/api/webhooks/5798/egfi'
Config.WebhookConnect = 'https://discord.com/api/webhooks/6789/fghi'
Config.WebhookDisconnect = 'https://discord.com/api/webhooks/7890/ghij'
Config.WebhookConnectWarning = 'https://discord.com/api/webhooks/8901/hijk'
Config.WebhookSuspiciousKills = 'https://discord.com/api/webhooks/12345/klmn'
Config.WebhookKillsAndDeaths = 'https://discord.com/api/webhooks/9012/ijkl'
Config.WebhookBackdoor = 'https://discord.com/api/webhooks/01234/jklm'
```

{% code overflow="wrap" %}

```
It is recommended to have a different webhook for each category.
```

{% endcode %}


---

# 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://docs.reasonanticheat.net/resources-documentation/reason-anticheat/webhooks-logs.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.
