diff --git a/.gitignore b/.gitignore index a0ba7ca..6df5b43 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,5 @@ plugins/rss_old.lua plugins/gfycat.lua plugins/yourls.lua plugins/youtube_channel.lua -plugins/pr0gramm.lua \ No newline at end of file +plugins/pr0gramm.lua +plugins/licht.lua \ No newline at end of file diff --git a/plugins/gifeye.lua b/plugins/gifeye.lua new file mode 100644 index 0000000..a4bf002 --- /dev/null +++ b/plugins/gifeye.lua @@ -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] \ No newline at end of file