From ef59f95bc0827a691dba1f9f1a003580b38dbab9 Mon Sep 17 00:00:00 2001 From: crate Date: Thu, 5 Jun 2025 18:21:19 -0500 Subject: [PATCH] fix iputils f strings --- garfpy/iputils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/garfpy/iputils.py b/garfpy/iputils.py index 1d91554..2e3a84f 100644 --- a/garfpy/iputils.py +++ b/garfpy/iputils.py @@ -38,7 +38,7 @@ class IPUtils: result = subprocess.run( ["ping", "-c", "4", target], capture_output=True, text=True ) - embed = discord.Embed(title="Ping result: {target}", color=0x4D4D4D, description=f"```{result.stdout}```") + embed = discord.Embed(title=f"Ping result: {target}", color=0x4D4D4D, description=f"```{result.stdout}```") await message.channel.send(embed=embed) except Exception as e: await message.channel.send(f"`GarfBot Error: {str(e)}`") @@ -52,7 +52,7 @@ class IPUtils: result = subprocess.run( ["nslookup", target], capture_output=True, text=True ) - embed = discord.Embed(title="NSLookup result: {target}", color=0x4D4D4D, description=f"```{result.stdout}```") + embed = discord.Embed(title=f"NSLookup result: {target}", color=0x4D4D4D, description=f"```{result.stdout}```") await message.channel.send(embed=embed) except Exception as e: await message.channel.send(f"`GarfBot Error: {str(e)}`") @@ -66,7 +66,7 @@ class IPUtils: result = subprocess.run( ["nmap", "-Pn", "-O", "-v", target], capture_output=True, text=True ) - embed = discord.Embed(title="Nmap scan result: {target}", color=0x4D4D4D, description=f"```{result.stdout}```") + embed = discord.Embed(title=f"Nmap scan result: {target}", color=0x4D4D4D, description=f"```{result.stdout}```") embed.set_footer(text="https://nmap.org/") await message.channel.send(embed=embed) except Exception as e: