new plugin gifeye.lua
This commit is contained in:
parent
39608e9205
commit
b307e18d34
1
.gitignore
vendored
1
.gitignore
vendored
@ -40,3 +40,4 @@ plugins/gfycat.lua
|
||||
plugins/yourls.lua
|
||||
plugins/youtube_channel.lua
|
||||
plugins/pr0gramm.lua
|
||||
plugins/licht.lua
|
18
plugins/gifeye.lua
Normal file
18
plugins/gifeye.lua
Normal file
@ -0,0 +1,18 @@
|
||||
local function run(msg, matches)
|
||||
local receiver = get_receiver(msg)
|
||||
local url = 'http://i.gifeye.com/'..matches[1]..'.gif'
|
||||
if not file_path then
|
||||
return 'Kein GIF gefunden'
|
||||
else
|
||||
print("GIF URL: "..url)
|
||||
send_document_from_url(receiver, url)
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
description = "Sendet GIFs von Gifeye.com",
|
||||
usage = {"gifeye.com URL","/gifeye [ID]","/ge [ID]"},
|
||||
patterns = {"https?://gifeye.com/([%w-_%.%?%.:,/%+=&#!]+)$","^/gifeye (.*)$","^/ge (.*)$"},
|
||||
run = run
|
||||
}
|
||||
--by Akamaru [https://ponywave.de]
|
Reference in New Issue
Block a user