Kleine Fixes

This commit is contained in:
Akamaru 2017-06-26 15:58:16 +02:00
parent 88988786fc
commit b22f6e0ba3
3 changed files with 2 additions and 4 deletions

View File

@ -23,7 +23,7 @@ function media_download:download_to_file_permanently(url, save_dir, file_name)
if code ~= 200 then return false end
local file_path = save_dir..'/'..file_name
print(file_path)
--print(file_path)
file = io.open(file_path, "w+")
file:write(table.concat(respbody))
file:close()

View File

@ -8,8 +8,6 @@ end
mc_skin.command = 'skin <Username>'
local BASE_URL = 'http://ip-api.com/json'
function mc_skin:action(msg, config, matches)
local input = utilities.input(msg.text)
if not input then

View File

@ -5,7 +5,7 @@ preview.command = 'preview <link>'
function preview:init(config)
preview.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('preview', true).table
preview.inline_triggers = {
"^pr (https?://[%w-_%.%?%.,:/%+=&%~%%#]+)$"
"^pr (https?://[%w-_%.%?%.,:;/%+=&%~%%#]+)$"
}
preview.doc = [[*
]]..config.cmd_pat..[[preview* _<URL>_