Alles miku

Erste Anpassungen für Mikudayobot
This commit is contained in:
2016-07-17 13:22:27 +02:00
parent d3c2e99165
commit b7ed1dbc80
173 changed files with 7350 additions and 5016 deletions

View File

@ -0,0 +1,17 @@
local speedtest = {}
local utilities = require('miku.utilities')
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(self, msg.chat.id, 'upload_photo')
local file = download_to_file(url)
utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id)
end
return speedtest