Skip to content

Commit

Permalink
Merge pull request #38 from Pilot1782/dev-builds
Browse files Browse the repository at this point in the history
Dev builds
  • Loading branch information
Pilot1782 authored May 12, 2022
2 parents 3eff945 + 6b4bd75 commit 627b50d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dis-bot.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ async def server_scan(ctx: interactions.CommandContext, ip_lower_bound: str, ip_
await ctx.send("Invalid IP")
exit()

for line in scan(lower_ip_bound, upper_ip_bound):
await ctx.send(line)



@bot.command(
Expand Down Expand Up @@ -187,6 +190,24 @@ async def status(ctx: interactions.CommandContext, ip: str):
await ctx.send("Scanning finished.\n{1} out of {0} are up.\nThe following Errors occured:\n{2}".format(len(data), u, er))
print("Scanning finished.\n{1} out of {0} are up.\nThe following Errors occured:\n{2}".format(len(data), u, er))

#Help command
@bot.command(
name="help",
description="Show the help message",
)
async def help(ctx: interactions.CommandContext):
await ctx.send("""
################################################################################
/server scan <ip_lower_bound> <ip_upper_bound>
scans the ip range and returns the status of the servers
/server status <ip>
returns the status of the server
/server help
shows this message
################################################################################
""")

#Startup
def startup():
Expand Down

0 comments on commit 627b50d

Please sign in to comment.