# Creating a webhook for logging

## Step 1

Create a webhook on your discord channel&#x20;

{% hint style="info" %}
[How to create a webhook?](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
{% endhint %}

## Step 2

Go into server/webhook.lua in script koja-lib and set the url of your webhook in the **table** KOJA.Server.Webhooks as \['cardealer'] string

{% code title="webhook.lua" %}

```lua
KOJA.Server.Webhooks = {
    ['cardealer'] = '' -- URL of the webhook
}
```

{% endcode %}

## And you are all set!

***

If the webhook embed doesn't meet your preferences, feel free to edit it!
