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/imgur.lua

14 lines
356 B
Lua
Raw Normal View History

2015-12-19 15:18:46 +01:00
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = 'http://i.imgur.com/'..matches[1]..'.jpg'
print("Bild URL: "..url)
send_photo_from_url(receiver, url)
end
return {
description = "Imgur Mirror",
usage = {"Imgur Link"},
patterns = {"imgur.com/([A-Za-z0-9]+)$",},
run = run
}
--by Akamaru [https://ponywave.de]