Skip to content

Commit 071b978

Browse files
committed
Now features the ID in there name
1 parent af79a0d commit 071b978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Serverlogging/server.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ local DISCORD_NAME = "System"
1111

1212

1313
AddEventHandler('chatMessage', function(source, name, message)
14-
PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = name, content = message}), { ['Content-Type'] = 'application/json' })
14+
PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = name .. " [" .. source .. "]", content = message}), { ['Content-Type'] = 'application/json' })
1515
end)
1616

1717
AddEventHandler('playerConnecting', function()

0 commit comments

Comments
 (0)