removed [p]nslookup
command
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 35s
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:
parent
40fdf469e6
commit
a5b9cffcaf
1 changed files with 0 additions and 12 deletions
|
@ -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."""
|
||||
|
|
Loading…
Reference in a new issue