From b307e18d3408da415fcba273fc36424d8ace8a8a Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sat, 18 Jul 2015 15:31:00 +0200 Subject: [PATCH] new plugin gifeye.lua --- .gitignore | 3 ++- plugins/gifeye.lua | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 plugins/gifeye.lua 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