mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 01:57:34 +00:00
update tryConfig
This commit is contained in:
parent
fd847e3860
commit
981932bfb4
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user