Browse Source

Add comment functionality to text files

master
Matei-Alexandru Gardus 6 months ago
parent
commit
6a7ad6a04c
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      farmer.py

+ 5
- 0
farmer.py View File

@@ -26,6 +26,11 @@ print('Script running! Press Ctrl-C to cancel.')
26 26
 gui.moveTo(960, 300, duration=0.1)
27 27
 gui.click()
28 28
 
29
+# Clean lines in query list that are actually comments
30
+for query in queries:
31
+    if query[1] == "#":
32
+        del query
33
+
29 34
 # Make sure we add variable for previous index to check code so we do not type same query twice, which won't register with points
30 35
 previousIndex = rng.randint(0, len(queries) - 1)
31 36
 

Loading…
Cancel
Save