From a8082bd34dfbc0b73289f7e8d50c870e2d3b6c93 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 10 Oct 2016 23:51:24 +0200 Subject: [PATCH 1/2] Speedtest Pattern-Fix --- otouto/plugins/speedtest.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/otouto/plugins/speedtest.lua b/otouto/plugins/speedtest.lua index ebba378..88a39bf 100644 --- a/otouto/plugins/speedtest.lua +++ b/otouto/plugins/speedtest.lua @@ -2,7 +2,8 @@ local speedtest = {} speedtest.triggers = { "speedtest.net/my%-result/(%d+)", - "speedtest.net/my%-result/i/(%d+)" + "speedtest.net/my%-result/i/(%d+)", + "speedtest.net/my%-result/a/(%d+)" } function speedtest:action(msg, config, matches) From 6447fbd2a52aba8553a05eb871986ee43edb340e Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sun, 23 Oct 2016 22:06:30 +0200 Subject: [PATCH 2/2] - GitHub: Fix, wenn keine Beschreibung - Notify: Interpunktion --- otouto/plugins/github.lua | 8 ++++++-- otouto/plugins/notify.lua | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/otouto/plugins/github.lua b/otouto/plugins/github.lua index 83eb754..5c21a34 100644 --- a/otouto/plugins/github.lua +++ b/otouto/plugins/github.lua @@ -24,7 +24,11 @@ end function github:send_github_data(data) if not data.owner then return nil end local name = ''..data.name..'' - local description = ''..data.description..'' + if data.description then + description = '\n'..data.description..'' + else + description = '' + end local owner = data.owner.login local clone_url = data.clone_url if data.language == nil or data.language == "" then @@ -42,7 +46,7 @@ function github:send_github_data(data) else homepage = '\nHomepage besuchen' end - local text = name..' von '..owner..'\n'..description..'\n
git clone '..clone_url..'
'..language..issues..homepage + local text = name..' von '..owner..description..'\n
git clone '..clone_url..'
'..language..issues..homepage return text end diff --git a/otouto/plugins/notify.lua b/otouto/plugins/notify.lua index 3988c31..ac580e2 100644 --- a/otouto/plugins/notify.lua +++ b/otouto/plugins/notify.lua @@ -87,11 +87,11 @@ function notify:action(msg, config, matches) redis:hset(hash, 'id', msg.from.id) print('Adding '..username..' to redis set notify:ls') redis:sadd('notify:ls', username) - local res = utilities.send_message(msg.from.id, 'Du erhältst jetzt Benachrichtigungen, wenn du angesprochen wirst, nutze `/notify del` zum Deaktivieren.', true, nil, true) + local res = utilities.send_message(msg.from.id, 'Du erhältst jetzt Benachrichtigungen, wenn du angesprochen wirst. Nutze `/notify del` zum Deaktivieren.', true, nil, true) if not res then utilities.send_reply(msg, 'Bitte schreibe mir [privat](http://telegram.me/' .. self.info.username .. '?start=notify), um den Vorgang abzuschließen.', true) elseif msg.chat.type ~= 'private' then - utilities.send_reply(msg, 'Du erhältst jetzt Benachrichtigungen, wenn du angesprochen wirst, nutze `/notify del` zum Deaktivieren.', true) + utilities.send_reply(msg, 'Du erhältst jetzt Benachrichtigungen, wenn du angesprochen wirst. Nutze `/notify del` zum Deaktivieren.', true) end end end