Update URLs for debug and development instances

This commit is contained in:
Linventif 2024-01-17 03:39:17 +01:00
parent 4c6977bede
commit 98865fd582
3 changed files with 22 additions and 6 deletions

View File

@ -31,9 +31,14 @@ end
local function getWebSocketURL()
local url = "wss://ws.gmod-integration.com"
if (gmInte.config.debug && gmInte.config.wssDebug) then
url = gmInte.config.wssDebug
local devURL = "wss://dev-ws.gmod-integration.com"
if (!gmInte.config.debug) then return url end
if (gmInte.config.devInstance) then
gmInte.log("Using dev Instance", true)
return devURL
end
return url
end

View File

@ -27,9 +27,14 @@ end
local function getAPIURL()
local url = "https://api.gmod-integration.com"
if (gmInte.config.debug && gmInte.config.apiDebug) then
url = gmInte.config.apiDebug
local devURL = "https://dev-api.gmod-integration.com"
if (!gmInte.config.debug) then return url end
if (gmInte.config.devInstance) then
gmInte.log("Using dev Instance", true)
return devURL
end
return url
end

View File

@ -37,7 +37,6 @@ gmInte.config.websocket = false // If true, the addon will use the websocket ins
// Other
gmInte.config.forcePlayerLink = false // If true, the addon will force the players to link their discord account to their steam account before playing
gmInte.config.supportLink = "" // The link of your support (shown when a player do not have the requiments to join the server)
gmInte.config.debug = false // If true, the addon will show debug informations in the console
gmInte.config.logBotActions = false // If true, the addon will log the messages of the bot in the console
//
@ -69,4 +68,11 @@ gmInte.config.filterOnBan = true // If true, the addon will filter the players a
//
// Will disable the features of the addon
gmInte.config.sendLog = false // Disable the logs
gmInte.config.sendLog = false // Disable the logs
//
// Debug & Development
//
gmInte.config.debug = false // If true, the addon will show debug informations in the console
gmInte.config.devInstance = false // If true, the addon will use the development instance of API and Websocket