removed [p]nslookup command
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 35s

use https://www.coastalcommits.com/Seaswimmer/SeaCogs/src/branch/main/seautils instead, that uses dig instead of nslookup and looks far nicer
This commit is contained in:
Seaswimmer 2024-05-30 23:53:37 +00:00
parent 40fdf469e6
commit a5b9cffcaf
Signed by: CoastalCommitsManagement
GPG key ID: 7E73189F651A553F

View file

@ -19,18 +19,6 @@ class Galaxy(commands.Cog):
autoreact_emoji = '💀'
)
@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}`")
except FileNotFoundError:
await ctx.send("`nslookup` command not found. Make sure you have `nslookup` installed and it's in your system PATH.")
@commands.command()
async def carnagerefund(self, ctx: commands.Context, message_id: str):
"""This command generates a link to refund carnage of killed ships."""