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/gifs.lua
2014-11-04 23:06:26 +01:00

14 lines
304 B
Lua

function run(msg, matches)
file = download_to_file(matches[1])
send_document(get_receiver(msg), file, ok_cb, false)
end
return {
description = "from gif URL downloads it and sends to origin",
usage = "",
patterns = {
"(https?://[%w-_%.%?%.:/%+=&]+.gif)$"
},
run = run
}