1
0
Fork 0

Fix slight indenting issue, causing spam

This commit is contained in:
Swee 2024-11-10 12:34:48 -08:00
parent f8ab39defe
commit 34d6b79357

View file

@ -195,12 +195,11 @@ async def on_message(message):
pass
else:
temp = (re.sub(' +', ' ', j)).split(" ")
print(temp)
if j != "":
ports.append(("🟢 " if temp[1] == "open" else "🔴 ") + temp[0] + " (" + temp[2] + ")")
else:
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.")
else:
mess = await message.reply(embed=guilded.Embed(title=":sweebot-fail: Invalid arguments",description="Only 1 argument is allowed: $nmap [hostname/IP]"))