This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/plugins/gifeye.lua

15 lines
502 B
Lua
Raw Normal View History

2015-07-18 15:31:00 +02:00
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = 'http://i.gifeye.com/'..matches[1]..'.gif'
print("GIF URL: "..url)
send_document_from_url(receiver, url)
2015-07-19 19:11:00 +02:00
return 'Source: http://gifeye.com/'..matches[1]
2015-07-18 15:31:00 +02:00
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]