update tryConfig

This commit is contained in:
Linventif 2023-11-05 03:05:35 +01:00
parent fd847e3860
commit 981932bfb4

View File

@ -148,9 +148,14 @@ function gmInte.playerDisconnected(ply)
end end
function gmInte.tryConfig() function gmInte.tryConfig()
gmInte.get("/server/guild", gmInte.get("/server",
function(code, body) function(code, body)
gmInte.log("Congratulations, you are connected to your discord guild (guild id: " .. body .. ")") local receiveData = util.JSONToTable(body)
print(" ")
gmInte.log("Congratulations your server is now connected to Gmod Integration")
gmInte.log("Server Name: " .. receiveData.name)
gmInte.log("Server ID: " .. receiveData.id)
print(" ")
end) end)
end end