Fix slight indenting issue, causing spam
This commit is contained in:
parent
f8ab39defe
commit
34d6b79357
1 changed files with 1 additions and 2 deletions
|
@ -195,12 +195,11 @@ async def on_message(message):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
temp = (re.sub(' +', ' ', j)).split(" ")
|
temp = (re.sub(' +', ' ', j)).split(" ")
|
||||||
print(temp)
|
|
||||||
if j != "":
|
if j != "":
|
||||||
ports.append(("🟢 " if temp[1] == "open" else "🔴 ") + temp[0] + " (" + temp[2] + ")")
|
ports.append(("🟢 " if temp[1] == "open" else "🔴 ") + temp[0] + " (" + temp[2] + ")")
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
mess = await message.reply(embed=guilded.Embed(title=":sweebot-success: Found " + str(len(ports)) +" ports",description="\n".join(ports)))
|
mess = await message.reply(embed=guilded.Embed(title=":sweebot-success: Found " + str(len(ports)) +" ports",description="\n".join(ports)))
|
||||||
print("[" + GREEN + "OK" + RESET + "] '$nmap' executed successfully.")
|
print("[" + GREEN + "OK" + RESET + "] '$nmap' executed successfully.")
|
||||||
else:
|
else:
|
||||||
mess = await message.reply(embed=guilded.Embed(title=":sweebot-fail: Invalid arguments",description="Only 1 argument is allowed: $nmap [hostname/IP]"))
|
mess = await message.reply(embed=guilded.Embed(title=":sweebot-fail: Invalid arguments",description="Only 1 argument is allowed: $nmap [hostname/IP]"))
|
||||||
|
|
Loading…
Reference in a new issue