# 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.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.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 %}
