From 6319595c8bb9027ee6768e5a273eef73278f3188 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 7 Aug 2023 09:43:44 -0400 Subject: [PATCH] fix: improved formatting on nslookup command --- galaxy/galaxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 8badfae..146e5d8 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -38,7 +38,7 @@ class Galaxy(commands.Cog): async def nslookup(self, ctx: commands.Context, *, website: str): try: result = subprocess.run(['nslookup', website], capture_output=True, text=True, check=True) - await ctx.send(result.stdout) + await ctx.send(f"```\n{result.stdout}\n```") except subprocess.CalledProcessError as e: await ctx.send(f"Error executing nslookup: {e}") except FileNotFoundError: