From 981932bfb4501ef9467167b3b900de0a90c44a0a Mon Sep 17 00:00:00 2001 From: Linventif Date: Sun, 5 Nov 2023 03:05:35 +0100 Subject: [PATCH] update tryConfig --- lua/gmod_integration/server/sv_main.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/gmod_integration/server/sv_main.lua b/lua/gmod_integration/server/sv_main.lua index 1ca5dd8..e50e76f 100644 --- a/lua/gmod_integration/server/sv_main.lua +++ b/lua/gmod_integration/server/sv_main.lua @@ -148,9 +148,14 @@ function gmInte.playerDisconnected(ply) end function gmInte.tryConfig() - gmInte.get("/server/guild", + gmInte.get("/server", 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