This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot-2/miku/plugins/z0r.lua
Andreas Bielawski 345e33dcb0 Portiere EINEN HAUFEN an Imageboard-Plugins, NSFW-Plugins, etc. Im Folgenden:
- boobs
- danbooru
- derpibooru(_nsfw)
- e621
- gifeye
- konachan(_nsfw)
- riko & yagyuu >> moe
- porndoge
- pornhub_gif
- pr0gramm
- random_pic(_nsfw)
- rule34
- sankakucomplex
- yandere
- z0r
2016-08-18 17:23:55 +02:00

26 lines
601 B
Lua

local z0r = {}
function z0r:init(config)
z0r.triggers = {
"https?://z0r.de/(%d+)$",
"^/[Zz]0[Rr] (%d+)$"
}
z0r.doc = [[*
]]..config.cmd_pat..[[z0r* _<ID>_: Sendet Loop von z0r]]
end
z0r.command = 'z0r <ID>'
function z0r:action(msg, config, matches)
local id = matches[1]
utilities.send_typing(self, msg.chat.id, 'upload_video')
local url = 'http://z0r.de/L/z0r-de_'..matches[1]..'.swf'
local file = download_to_file(url)
if not file then
utilities.send_reply(self, msg, config.errors.connection)
return
end
utilities.send_document(self, msg.chat.id, file)
end
return z0r