# webhook

```lua
SConfig ={}
SConfig = {
    loggingmethod = "bot", -- Options: "webhook", "bot". Controls whether to use webhooks or the bot globally.
    bot = {
        token = "bot_token" -- Replace with your bot token
    },
    channels = {
        issues = "channel_ID",
        chat = "channel_ID",
        join = "channel_ID",
        leave = "channel_ID",
        death = "channel_ID",
        shooting = "channel_ID",
        nameChange = "channel_ID",
        txAdmin = "channel_ID",
    },
    webhooks = {
        -- Webhook for issues/alerts
        issues = "discord_webhook",

        chat = "",
        join = "",
        leave = "",
        death = "",
        shooting = "",
        nameChange = "",
        txAdmin = "discord_webhook",
    },

    embed = {
        footer = {
            text = "NLRP Scripts", -- Footer text
            icon_url = "https://chibi.iitranq.co.uk/BZTSFKLeAJVP.png", -- Footer icon URL
            iconEnabled = true, -- This must be disabled if the icon_url is empty or Logging will not work
        }
    },
}
```
