moe.lua: http -> https

This commit is contained in:
Akamaru 2016-10-13 12:43:50 +02:00
parent 5060c42fab
commit c6456a8638
1 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ end
moe.command = 'riko, /yagyuu'
function moe:get_url(site_url)
local res,code = http.request(site_url)
local res,code = https.request(site_url)
if code ~= 200 then return nil end
local photo_url = res:match("<img src%=\"(.-)\" alt")
local photo_url = site_url..'/'..photo_url
@ -23,9 +23,9 @@ end
function moe:action(msg, config, matches)
if matches[1]:match('[Rr][Ii][Kk][Oo]') then
site_url = 'http://riko.moe'
site_url = 'https://riko.moe'
elseif matches[1]:match('[Yy][Aa][Gg][Yy][Uu][Uu]') then
site_url = 'http://yagyuu.moe'
site_url = 'https://yagyuu.moe'
end
utilities.send_typing(msg.chat.id, 'upload_photo')