This commit is contained in:
Collin R
2020-02-01 00:48:14 -08:00
parent 3dee25bd80
commit 5b3a3d8f1f
4 changed files with 32 additions and 61 deletions

View File

@@ -8,7 +8,6 @@ from .level import Level
ROOTPATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
CONFIGPATH = os.path.join(ROOTPATH, 'pointsbot.ini')
# CONFIGPATH = abspath(join(dirname(__file__), '..', 'pointsbot.ini'))
# TODO add default config values to pass to configparser
@@ -29,7 +28,6 @@ class Config:
database_path = os.path.join(ROOTPATH, config['Core']['database_name'])
# Get the user flair levels in ascending order by point value
# TODO Make levels a dict instead
levels = []
for opt in config.options('Levels'):
name, points = opt.title(), config.getint('Levels', opt)