fix: improved formatting on nslookup command
This commit is contained in:
parent
0c3c975dd6
commit
6319595c8b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue