Kleine Fixes
This commit is contained in:
parent
88988786fc
commit
b22f6e0ba3
@ -23,7 +23,7 @@ function media_download:download_to_file_permanently(url, save_dir, file_name)
|
|||||||
if code ~= 200 then return false end
|
if code ~= 200 then return false end
|
||||||
|
|
||||||
local file_path = save_dir..'/'..file_name
|
local file_path = save_dir..'/'..file_name
|
||||||
print(file_path)
|
--print(file_path)
|
||||||
file = io.open(file_path, "w+")
|
file = io.open(file_path, "w+")
|
||||||
file:write(table.concat(respbody))
|
file:write(table.concat(respbody))
|
||||||
file:close()
|
file:close()
|
||||||
|
@ -8,8 +8,6 @@ end
|
|||||||
|
|
||||||
mc_skin.command = 'skin <Username>'
|
mc_skin.command = 'skin <Username>'
|
||||||
|
|
||||||
local BASE_URL = 'http://ip-api.com/json'
|
|
||||||
|
|
||||||
function mc_skin:action(msg, config, matches)
|
function mc_skin:action(msg, config, matches)
|
||||||
local input = utilities.input(msg.text)
|
local input = utilities.input(msg.text)
|
||||||
if not input then
|
if not input then
|
||||||
|
@ -5,7 +5,7 @@ preview.command = 'preview <link>'
|
|||||||
function preview:init(config)
|
function preview:init(config)
|
||||||
preview.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('preview', true).table
|
preview.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('preview', true).table
|
||||||
preview.inline_triggers = {
|
preview.inline_triggers = {
|
||||||
"^pr (https?://[%w-_%.%?%.,:/%+=&%~%%#]+)$"
|
"^pr (https?://[%w-_%.%?%.,:;/%+=&%~%%#]+)$"
|
||||||
}
|
}
|
||||||
preview.doc = [[*
|
preview.doc = [[*
|
||||||
]]..config.cmd_pat..[[preview* _<URL>_
|
]]..config.cmd_pat..[[preview* _<URL>_
|
||||||
|
Reference in New Issue
Block a user