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-2/otouto/plugins/speedtest.lua
Andreas Bielawski 2a3cbeab6d - Fixe Gfycat
- Mehr Verbesserungen für das 3. Oktober Update
2016-10-03 21:56:32 +02:00

14 lines
374 B
Lua

local speedtest = {}
speedtest.triggers = {
"speedtest.net/my%-result/(%d+)",
"speedtest.net/my%-result/i/(%d+)"
}
function speedtest:action(msg, config, matches)
local url = 'http://www.speedtest.net/result/'..matches[1]..'.png'
utilities.send_typing(msg.chat.id, 'upload_photo')
utilities.send_photo(msg.chat.id, url, nil, msg.message_id)
end
return speedtest