new plugin gifeye.lua

This commit is contained in:
Akamaru 2015-07-18 15:31:00 +02:00
parent 39608e9205
commit b307e18d34
2 changed files with 20 additions and 1 deletions

3
.gitignore vendored
View File

@ -39,4 +39,5 @@ plugins/rss_old.lua
plugins/gfycat.lua
plugins/yourls.lua
plugins/youtube_channel.lua
plugins/pr0gramm.lua
plugins/pr0gramm.lua
plugins/licht.lua

18
plugins/gifeye.lua Normal file
View 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]