Webhooks

circle-info

The script includes Discord logging to help you monitor its actions.

circle-exclamation

How to put logs in your discord

Go to "ws-doorlock/config.lua". On line 7, you can set your webhook URL. This channel will receive the logs sent by the script.


-- Put your webhook link between ""
Config.DoorSystemWebhook = "https://discord.com/api/webhooks/"

Change the logs options

In your config file, on lines 18–22, you can customize which logs the script sends to your Discord channel. To disable a log, change true for false.

-- Enable/disable logging of specific door actions
Config.WebhookLogs = {
    door_created = true,         -- Log when a door is created
    door_deleted = true,         -- Log when a door is deleted
    door_edited = true,          -- Log when a door is edited
    door_state_changed = true,  -- Log when a door is locked/unlocked
}

Last updated