From 3139965add7d5c1653079079d467ceb65e0325d5 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 20 Mar 2017 21:08:07 +0100 Subject: [PATCH] =?UTF-8?q?Verbesserte=20Bilder-Preview=20f=C3=BCr=20Figuy?= =?UTF-8?q?a=20&=20MAL=20User?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit speedtest pattern verbessert --- miku/plugins/figuya.lua | 4 ++-- miku/plugins/mal_user.lua | 5 +++-- miku/plugins/speedtest.lua | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/miku/plugins/figuya.lua b/miku/plugins/figuya.lua index 1410237..8992870 100644 --- a/miku/plugins/figuya.lua +++ b/miku/plugins/figuya.lua @@ -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 = ''..title..'\n'..desc..''..'.' + local text = ''..title..'\n'..desc..''..' ' return text end diff --git a/miku/plugins/mal_user.lua b/miku/plugins/mal_user.lua index 8f20c53..a125dea 100644 --- a/miku/plugins/mal_user.lua +++ b/miku/plugins/mal_user.lua @@ -21,7 +21,8 @@ function mal_user:get_infos(user) local name = ''..data.user_name..'' local id = data.user_id - local user_pic = ' (ID '..id..')' + local user_id = ' (ID '..id..')' + local user_pic = ' ' if data.user_watching == '1' then watching = ''..data.user_watching..' Anime' else @@ -37,7 +38,7 @@ function mal_user:get_infos(user) end local mal_url = 'Profil aufrufen' - 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 diff --git a/miku/plugins/speedtest.lua b/miku/plugins/speedtest.lua index 457cd34..640b20a 100644 --- a/miku/plugins/speedtest.lua +++ b/miku/plugins/speedtest.lua @@ -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)