trying to make a discord bot with a port scanner and keep running into this error
async def scan(ctx):
async def scan(port):
try:
s = socket.socket()
s.settimeout(1)
s.connect((ip, port))
s.close()
with concurrent.futures.ThreadPoolExecutor(max_workers=100) as executor:
for port in range(65500):
executor.submit(scan, ip, port + 1)
client.run(TOKEN)```
the error is
File "bot.py", line 94
^
SyntaxError: unexpected EOF while parsing