345e33dcb0
- boobs - danbooru - derpibooru(_nsfw) - e621 - gifeye - konachan(_nsfw) - riko & yagyuu >> moe - porndoge - pornhub_gif - pr0gramm - random_pic(_nsfw) - rule34 - sankakucomplex - yandere - z0r
26 lines
601 B
Lua
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 |