From 34d6b793575cf3b842e809d738b1ac4bb18d0331 Mon Sep 17 00:00:00 2001 From: Swee Date: Sun, 10 Nov 2024 12:34:48 -0800 Subject: [PATCH] Fix slight indenting issue, causing spam --- guild2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guild2.py b/guild2.py index 88cd29e..810e758 100644 --- a/guild2.py +++ b/guild2.py @@ -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]"))