oops
This commit is contained in:
1 parent
854482094a
commit
3f7e87b710
2 files changed
+5
-6
No files matched your search
@@ -1,7 +1,9 @@
|
|||||||
Logs = Logs or {}
|
Logs = Logs or {}
|
||||||
|
|
||||||
local WebhookURL = BridgeServerConfig.WebhookURL -- Add webhook URL here if using built-in logging system
|
local WebhookURL = "" -- Add webhook URL here if using built-in logging system
|
||||||
local LogoForEmbed = BridgeServerConfig.WebhookImage -- optional logo for the embed
|
local LogoForEmbed = "https://cdn.discordapp.com/avatars/299410129982455808/31ce635662206e8bd0132c34ce9ce683?size=1024"
|
||||||
|
local LogSystem = "built-in" -- Default log system, can be "built-in", "qb", or "ox_lib"
|
||||||
|
|
||||||
|
|
||||||
---This will send a log to the configured webhook or log system.
|
---This will send a log to the configured webhook or log system.
|
||||||
---@param src number
|
---@param src number
|
||||||
@@ -9,7 +11,7 @@ local LogoForEmbed = BridgeServerConfig.WebhookImage -- optional logo for the em
|
|||||||
---@return nil
|
---@return nil
|
||||||
Logs.Send = function(src, message)
|
Logs.Send = function(src, message)
|
||||||
if not src or not message then return end
|
if not src or not message then return end
|
||||||
local logType = BridgeServerConfig.LogSystem or "built-in"
|
local logType = LogSystem or "built-in"
|
||||||
if logType == "built-in" then
|
if logType == "built-in" then
|
||||||
PerformHttpRequest(WebhookURL, function(err, text, headers) end, 'POST', json.encode(
|
PerformHttpRequest(WebhookURL, function(err, text, headers) end, 'POST', json.encode(
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
BridgeServerConfig = {}
|
BridgeServerConfig = {}
|
||||||
BridgeServerConfig.LogSystem = "built-in" -- [ built-in | qb | ox_lib ]
|
|
||||||
BridgeServerConfig.WebhookURL = "" -- only if using builtin, put in the channels webhook url
|
|
||||||
BridgeServerConfig.WebhookImage = "https://cdn.discordapp.com/avatars/299410129982455808/31ce635662206e8bd0132c34ce9ce683?size=1024"
|
|
||||||
BridgeServerConfig.MaxInventorySlots = 50
|
BridgeServerConfig.MaxInventorySlots = 50
|
||||||
|
|
||||||
return BridgeServerConfig
|
return BridgeServerConfig
|
||||||
Reference in new issue
Block a user