From ebb1a8e48f795180ea3569c13cb23bf4a064860f Mon Sep 17 00:00:00 2001 From: Augustin <67148092+augustin64@users.noreply.github.com> Date: Wed, 16 Nov 2022 18:12:43 +0100 Subject: [PATCH] Update config.py --- modules/config.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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)