From eb41c1a72b4e973df343db5b812540d530c56573 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sat, 25 May 2024 17:40:02 -0400 Subject: [PATCH] fix(speedtest): fixed two keyerrors --- speedtest/speedtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speedtest/speedtest.py b/speedtest/speedtest.py index aa8acec..165071a 100644 --- a/speedtest/speedtest.py +++ b/speedtest/speedtest.py @@ -62,7 +62,7 @@ class Speedtest(commands.Cog): return embed = discord.Embed(title="Speedtest Results", url=r["result"]["url"], color=await ctx.embed_color()) embed.add_field(name="Bandwidth", value=f"{r['download']['bandwidth'] / 1_000_000:.2f} Mbps down, {r['upload']['bandwidth'] / 1_000_000:.2f} Mbps up") - embed.add_field(name="Ping", value=f"Base: {round(r['ping']['latency'])} ms \nDownload: {round(r['download']['latency']['igm'])} ms \nUpload: {round(r['upload']['latency']['igm'])} ms") + embed.add_field(name="Ping", value=f"Base: {round(r['ping']['latency'])} ms \nDownload: {round(r['download']['latency']['iqm'])} ms \nUpload: {round(r['upload']['latency']['iqm'])} ms") embed.set_image(url=r["result"]["image"] + ".png") await msg.edit(embed=embed) else: