Skip to content

Commit 765f476

Browse files
committed
Update server.lua
If people now type /tts [message] it doesn't do it in discord
1 parent 5e9e22c commit 765f476

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
@@ -13,7 +13,7 @@ AddEventHandler('chatMessage', function(source, name, message)
1313
--print(tonumber(GetIDFromSource('steam', source), 16)) -- DEBUGGING
1414
--print('https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' .. STEAM_KEY .. '&steamids=' .. tonumber(GetIDFromSource('steam', source), 16))
1515
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' })
16+
PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = name .. " [" .. source .. "]", content = message, tts = false}), { ['Content-Type'] = 'application/json' })
1717
else
1818
PerformHttpRequest('https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' .. STEAM_KEY .. '&steamids=' .. tonumber(GetIDFromSource('steam', source), 16), function(err, text, headers)
1919
local image = string.match(text, '"avatarfull":"(.-)","')

0 commit comments

Comments
 (0)