This commit is contained in:
Akamaru 2017-01-21 19:25:19 +01:00
parent 5fd3fb6aba
commit b915f1803a
4 changed files with 5 additions and 5 deletions

View File

@ -317,7 +317,7 @@ function bot:print_msg(msg)
elseif msg.audio then elseif msg.audio then
filetext = '[Audio] ' filetext = '[Audio] '
elseif msg.document then elseif msg.document then
filetext = '[Datei] ' filetext = '[Datei] ('..msg.document.file_name..') '
elseif msg.location then elseif msg.location then
filetext = '[Standort] ' filetext = '[Standort] '
elseif msg.contact then elseif msg.contact then

View File

@ -12,8 +12,8 @@ function figuya:get_figuya(figu)
local data = json.decode(b) local data = json.decode(b)
local title = data.title local title = data.title
if string.len(data.description) > 400 then if string.len(data.description) > 500 then
desc = string.sub(unescape(data.description:gsub("%b<>", "")), 1, 400)..'..' desc = string.sub(unescape(data.description:gsub("%b<>", "")), 1, 500)..'..'
else else
desc = unescape(data.description)..'.' desc = unescape(data.description)..'.'
end end

View File

@ -34,8 +34,7 @@ function moe:action(msg, config, matches)
utilities.send_reply(msg, config.errors.connection) utilities.send_reply(msg, config.errors.connection)
return return
end end
local file = download_to_file(photo_url) utilities.send_photo(msg.chat.id, photo_url, nil, msg.message_id)
utilities.send_photo(msg.chat.id, file, nil, msg.message_id)
end end
return moe return moe

View File

@ -68,6 +68,7 @@ function plex:get_plex(query)
if data.grandparentTitle then if data.grandparentTitle then
from = ' (aus <i>'..data.grandparentTitle..'</i> ['..string.gsub(season..episode, 'S0E', 'SP')..']'..') ' from = ' (aus <i>'..data.grandparentTitle..'</i> ['..string.gsub(season..episode, 'S0E', 'SP')..']'..') '
from = string.gsub(from, 'SP501', 'SP01')
else else
from = '' from = ''
end end