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:
32
miku/plugins/gifeye.lua
Normal file
32
miku/plugins/gifeye.lua
Normal file
@ -0,0 +1,32 @@
|
||||
local gifeye = {}
|
||||
|
||||
function gifeye:init(config)
|
||||
gifeye.triggers = {
|
||||
"https?://gifeye.com/(%d+)$",
|
||||
"^/gifeye (%d+)$",
|
||||
"^/ge (%d+)$"
|
||||
}
|
||||
gifeye.doc = [[*
|
||||
]]..config.cmd_pat..[[ge* _<ID>_: Sendet Bild von Gifeye (NSFW)]]
|
||||
end
|
||||
|
||||
gifeye.command = 'ge <ID>'
|
||||
|
||||
function gifeye:action(msg, config, matches)
|
||||
local url = 'http://i.gifeye.com/'..matches[1]..'.gif'
|
||||
utilities.send_typing(self, msg.chat.id, 'upload_document')
|
||||
local file = download_to_file(url)
|
||||
if not file then
|
||||
utilities.send_reply(self, msg, config.errors.results)
|
||||
return
|
||||
end
|
||||
|
||||
if string.starts(msg.text_lower, '/ge') or string.starts(msg.text_lower, '/gifeye') then
|
||||
source = 'http://gifeye.com/'..matches[1]
|
||||
else
|
||||
source = nil
|
||||
end
|
||||
utilities.send_document(self, msg.chat.id, file, source)
|
||||
end
|
||||
|
||||
return gifeye
|
Reference in New Issue
Block a user