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.
2015-11-12 17:42:03 +01:00
|
|
|
--[[Requires speedtest-cli (https://github.com/sivel/speedtest-cli)
|
|
|
|
$ wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
|
|
|
|
$ chmod +x speedtest-cli
|
|
|
|
$ sudo mv speedtest-cli /usr/local/bin/speedtest-cli
|
|
|
|
]]
|
|
|
|
|
|
|
|
function run(msg, matches)
|
|
|
|
local receiver = get_receiver(msg)
|
|
|
|
local text = run_bash('speedtest-cli --share')
|
|
|
|
local photo = string.match(text,"Share results: (.*)")
|
|
|
|
send_photo_from_url(receiver, photo)
|
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
|
|
|
description = "Führt eine Speedtest aus",
|
2016-06-22 13:59:06 +02:00
|
|
|
usage = {"#speedtest"},
|
|
|
|
patterns = {"^#[Ss][Pp][Ee][Ee][Dd][Tt][Ee][Ss][Tt]$"},
|
2015-11-12 17:42:03 +01:00
|
|
|
run = run
|
|
|
|
}
|
|
|
|
--by Akamaru [https://ponywave.de]
|