Verbesserte Bilder-Preview für Figuya & MAL User
speedtest pattern verbessert
This commit is contained in:
parent
a1313ac28e
commit
3139965add
@ -13,12 +13,12 @@ function figuya:get_figuya(figu)
|
||||
|
||||
local title = data.title
|
||||
if string.len(data.description) > 500 then
|
||||
desc = string.sub(unescape(data.description:gsub("%b<>", "")), 1, 500)..'..'
|
||||
desc = string.sub(unescape(data.description:gsub("%b<>", "")), 1, 500)..'...'
|
||||
else
|
||||
desc = unescape(data.description)..'.'
|
||||
end
|
||||
local pic = data.thumbnail_url
|
||||
local text = '<b>'..title..'</b>\n<i>'..desc..'</i>'..'<a href="'..pic..'">.</a>'
|
||||
local text = '<b>'..title..'</b>\n<i>'..desc..'</i>'..'<a href="'..pic..'"> </a>'
|
||||
|
||||
return text
|
||||
end
|
||||
|
@ -21,7 +21,8 @@ function mal_user:get_infos(user)
|
||||
|
||||
local name = '<b>'..data.user_name..'</b>'
|
||||
local id = data.user_id
|
||||
local user_pic = ' <i>(ID</i> <a href="https://myanimelist.cdn-dena.com/images/userimages/'..id..'.jpg">'..id..'</a><i>)</i>'
|
||||
local user_id = ' <i>(ID '..id..')</i>'
|
||||
local user_pic = '<a href="https://myanimelist.cdn-dena.com/images/userimages/'..id..'.jpg"> </a>'
|
||||
if data.user_watching == '1' then
|
||||
watching = '<b>'..data.user_watching..' Anime</b>'
|
||||
else
|
||||
@ -37,7 +38,7 @@ function mal_user:get_infos(user)
|
||||
end
|
||||
local mal_url = '<a href="http://myanimelist.net/profile/'..data.user_name..'">Profil aufrufen</a>'
|
||||
|
||||
local text = name..user_pic..' schaut derzeit '..watching..', hat '..pause..', '..dropped..' und '..complete..'. '..planed..' auf der Watchlist.\n'..mal_url
|
||||
local text = user_pic..name..user_id..' schaut derzeit '..watching..', hat '..pause..', '..dropped..' und '..complete..'. '..planed..' auf der Watchlist.\n'..mal_url
|
||||
|
||||
return text
|
||||
end
|
||||
|
@ -1,7 +1,8 @@
|
||||
local speedtest = {}
|
||||
|
||||
speedtest.triggers = {
|
||||
"speedtest%.net/my%-result/?a?i?/(%d+)"
|
||||
"speedtest%.net/my%-result/?a?i?/(%d+)",
|
||||
"speedtest%.net/result/?a?i?/(%d+)"
|
||||
}
|
||||
|
||||
function speedtest:action(msg, config, matches)
|
||||
|
Reference in New Issue
Block a user