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

13 lines
371 B
Lua
Raw Normal View History

2015-11-12 17:42:03 +01:00
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = 'http://www.speedtest.net/result/'..matches[1]..'.png'
send_photo_from_url(receiver, url)
end
return {
description = "Speedtest.net Mirror",
usage = {"Speedtest.net Result Link"},
patterns = {"speedtest.net/my%-result/([0-9]+)"},
run = run
}
--by Akamaru [https://ponywave.de]