We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e9e22c commit 765f476Copy full SHA for 765f476
Serverlogging/server.lua
@@ -13,7 +13,7 @@ AddEventHandler('chatMessage', function(source, name, message)
13
--print(tonumber(GetIDFromSource('steam', source), 16)) -- DEBUGGING
14
--print('https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' .. STEAM_KEY .. '&steamids=' .. tonumber(GetIDFromSource('steam', source), 16))
15
if STEAM_KEY == '' or STEAM_KEY == nil then
16
- PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = name .. " [" .. source .. "]", content = message}), { ['Content-Type'] = 'application/json' })
+ PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = name .. " [" .. source .. "]", content = message, tts = false}), { ['Content-Type'] = 'application/json' })
17
else
18
PerformHttpRequest('https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' .. STEAM_KEY .. '&steamids=' .. tonumber(GetIDFromSource('steam', source), 16), function(err, text, headers)
19
local image = string.match(text, '"avatarfull":"(.-)","')
0 commit comments