Skip to content

Commit

Permalink
Update dank.minecraft-server-scanner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SirDank committed Dec 17, 2023
1 parent 871dcd1 commit ba4890e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions __modules__/dank.minecraft-server-scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def main():

if not os.path.isfile('scan_count.txt'):
open('scan_count.txt','w').write('0')
try: open('servers.txt','x').close()
except: pass
if not os.path.isfile('servers.txt'):
open('servers.txt','x').close()

# remove old files

Expand Down Expand Up @@ -200,8 +200,9 @@ def main():
except: input(clr(f"\n > {translate('Failed to check ips! Do not use [ Ctrl + C ]! Press [ENTER] to try again')}... ",2)); rm_line()

# saving scanned ips

scan_count = int(open('scan_count.txt','r',encoding='utf-8').read())

try: scan_count = int(open('scan_count.txt','r',encoding='utf-8').read())
except: scan_count = 0
scan_count += len(ips)
open('scan_count.txt','w',encoding='utf-8').write(str(scan_count))
print(clr(f"\n - Totally Scanned {scan_count} IPs!"))
Expand Down

0 comments on commit ba4890e

Please sign in to comment.