Add Speedtest cog #28

Open
cswimr wants to merge 19 commits from speedtest into main
Showing only changes of commit 94b692a705 - Show all commits

View file

@ -71,7 +71,7 @@ class Speedtest(commands.Cog):
await msg.edit(content=f"An error occurred! \n`{speedtest}`") await msg.edit(content=f"An error occurred! \n`{speedtest}`")
return return
await msg.edit(content=f"**Speedtest Results**\n" await msg.edit(content=f"**Speedtest Results**\n"
f"**Bandwidth**: {speedtest.download.mbps:,.2f} Mbps down, {speedtest.download.mbps:,.2f} Mbps up\n" f"**Bandwidth**: {speedtest.download.mbps:,.2f} Mbps down ({speedtest.download.bandwidth}), {speedtest.download.mbps:,.2f} Mbps up\n"
f"**Ping**: Base: {round(speedtest.ping.latency)} ms\n" f"**Ping**: Base: {round(speedtest.ping.latency)} ms\n"
f"Download: {round(speedtest.download.latency.iqm)} ms\n" f"Download: {round(speedtest.download.latency.iqm)} ms\n"
f"Upload: {round(speedtest.upload.latency.iqm)} ms\n" f"Upload: {round(speedtest.upload.latency.iqm)} ms\n"