moe.lua: http -> https
This commit is contained in:
		| @@ -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') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user