Add Speedtest cog #28

Open
cswimr wants to merge 17 commits from speedtest into main
Showing only changes of commit 30003cd7c8 - Show all commits

View file

@ -38,7 +38,7 @@ class Speedtest(commands.Cog):
async def run_speedtest(self) -> str | Any: async def run_speedtest(self) -> str | Any:
try: try:
process = await asyncio.create_subprocess_exec( process = await asyncio.create_subprocess_exec(
program=["speedtest", "-f", "json", "--accept-license"], "speedtest", "-f", "json", "--accept-license",
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE stderr=subprocess.PIPE
) )