diff --git a/modules/config.py b/modules/config.py index d417d6d..7d0e9d4 100644 --- a/modules/config.py +++ b/modules/config.py @@ -64,6 +64,14 @@ parser.add_argument( type=argparse.FileType('r') ) +parser.add_argument( + "-a", + "--add-points", + help="Add points to the database from a file and exit", + dest="points_file", + default="" +) + args = parser.parse_args() CUSTOM_START = args.override UNBAN = args.unban @@ -73,7 +81,9 @@ FAST = args.fast if CUSTOM_START : LOG = True -# gloabal variables used later in the code +POINTS_FILE = args.points_file + +# global variables used later in the code LINUX_HOST = platform == "linux" # if the computer running this programm is linux, it allow more things START_TIME = time() driver = None @@ -145,4 +155,4 @@ g.close() with open(CREDENTIALS_PATH) as f: reader = reader(f) Credentials = list(reader) -shuffle(Credentials) \ No newline at end of file +shuffle(Credentials)