move: sync chat to a custom file

This commit is contained in:
Linventif 2024-02-27 02:25:53 +01:00
parent 0143b77db8
commit a9f33efd4c
No known key found for this signature in database
GPG Key ID: FAC0CA60F9AEEC24
2 changed files with 3 additions and 4 deletions

View File

@ -21,10 +21,6 @@ function gmInte.chatAddText(data)
chat.AddText(unpack(args)) chat.AddText(unpack(args))
end end
function gmInte.discordSyncChatPly(data)
chat.AddText(Color(92, 105, 255), "(DISCORD) ", Color(12, 151, 12), formatName(data.name) .. ": ", Color(255, 255, 255), data.content)
end
function gmInte.showTestConnection(data) function gmInte.showTestConnection(data)
if (data && data.id) then if (data && data.id) then
chat.AddText(Color(255, 130, 92), "[Gmod Integration] ", Color(63, 102, 63), "Connection Successfull", Color(255, 255, 255), ", server logged as '" .. data.name .. "'") chat.AddText(Color(255, 130, 92), "[Gmod Integration] ", Color(63, 102, 63), "Connection Successfull", Color(255, 255, 255), ", server logged as '" .. data.name .. "'")

View File

@ -0,0 +1,3 @@
function gmInte.discordSyncChatPly(data)
chat.AddText(Color(92, 105, 255), "(DISCORD) ", Color(12, 151, 12), formatName(data.name) .. ": ", Color(255, 255, 255), data.content)
end