Update steam.lua
Sends header_image
This commit is contained in:
parent
c34f39855a
commit
35a2c59b13
@ -26,7 +26,6 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function send_steam_data(data, receiver)
|
function send_steam_data(data, receiver)
|
||||||
-- local title = data.name
|
|
||||||
local description = string.sub(unescape(data.about_the_game:gsub("%b<>", "")), 1, DESC_LENTH) .. '...'
|
local description = string.sub(unescape(data.about_the_game:gsub("%b<>", "")), 1, DESC_LENTH) .. '...'
|
||||||
local title = data.name
|
local title = data.name
|
||||||
local price = "$"..(data.price_overview.initial/100)
|
local price = "$"..(data.price_overview.initial/100)
|
||||||
@ -39,7 +38,7 @@ function send_steam_data(data, receiver)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local text = title..' '..price_display..'\n'..description
|
local text = title..' '..price_display..'\n'..description
|
||||||
local image_url = data.screenshots[1].path_full
|
local image_url = data.header_image
|
||||||
local cb_extra = {
|
local cb_extra = {
|
||||||
receiver = receiver,
|
receiver = receiver,
|
||||||
url = image_url
|
url = image_url
|
||||||
|
Reference in New Issue
Block a user