From beee10f303de8f9967c9bd818c66c0bfa7914dfd Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 7 Aug 2023 09:46:11 -0400 Subject: [PATCH] fix: added docstring --- galaxy/galaxy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 146e5d8..2e03fdd 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -36,13 +36,14 @@ class Galaxy(commands.Cog): @commands.command() @checks.is_owner() async def nslookup(self, ctx: commands.Context, *, website: str): + """This command uses `nslookup` to check the IP Address of any given website.""" try: result = subprocess.run(['nslookup', website], capture_output=True, text=True, check=True) await ctx.send(f"```\n{result.stdout}\n```") except subprocess.CalledProcessError as e: - await ctx.send(f"Error executing nslookup: {e}") + await ctx.send(f"Error executing `nslookup`: `{e}`") except FileNotFoundError: - await ctx.send("nslookup command not found. Make sure you have nslookup installed and it's in your system PATH.") + await ctx.send("`nslookup` command not found. Make sure you have nslookup installed and it's in your system PATH.") @commands.command()