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
This commit is contained in:
26
miku/plugins/z0r.lua
Normal file
26
miku/plugins/z0r.lua
Normal file
@ -0,0 +1,26 @@
|
||||
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
|
Reference in New Issue
Block a user