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