Savant-Dev / v.0.0.1

An all-in-one Discord bot written in Python 3.8.2
0 stars 1 forks source link

Update Leveling/Infraction/Database APIs to base from `constants.py` #20

Closed Savant-Dev closed 4 years ago

Savant-Dev commented 4 years ago

Currently these APIs pull from local variable declarations. With the addition of #19 - we are now able to add global configurations in the config.yml or default-config.yml files. These APIs (depending on their settings) should first pull from the database, and if no record is found, pull from the local config files.

Access to the configuration files can be done via constants.py as such

from constants import Boosts, Leagues, Prestiges, Levels

for example.

Savant-Dev commented 4 years ago

Still need a few files to be migrated to new configuration methods