diff --git a/otouto/plugins/fefe.lua b/otouto/plugins/fefe.lua index eb69fcb..5211a3b 100644 --- a/otouto/plugins/fefe.lua +++ b/otouto/plugins/fefe.lua @@ -5,7 +5,7 @@ fefe.triggers = { } function fefe:post(id) - local url = 'http://'..id + local url = 'https://'..id local results, code = https.request(url) if code ~= 200 then return "HTTP-Fehler" end if string.match(results, "No entries found.") then return "Eintrag nicht gefunden." end @@ -16,17 +16,14 @@ function fefe:post(id) local text = text:gsub("
  • %[l]", "") -- replace "

    " with newline; "" and "" with "*" local text = text:gsub("

    ", "\n\n"):gsub("

    ", "\n\n") - local text = text:gsub("", "*"):gsub("", "*") - local text = text:gsub("", "_"):gsub("", "_") -- format quotes and links markdown-like - local text = text:gsub("", ")["):gsub("", "]") local text = text:gsub("

    ", "\n\n> "):gsub("
    ", "\n\n") return text end function fefe:action(msg, config, matches) - utilities.send_reply(msg, fefe:post(matches[1])) + utilities.send_reply(msg, fefe:post(matches[1]), 'HTML') end -return fefe +return fefe \ No newline at end of file