diff --git a/settings.py b/settings.py index e2192f6..163cf60 100644 --- a/settings.py +++ b/settings.py @@ -21,3 +21,9 @@ class BuypeebSettings: self.s = json.load(open(self.location + "config.json", 'r')) except: print("Couldn't load settings - using defaults") + + def get(self, setting: str): # javalicious + return self.s.get(setting, None) + + def set(self, setting: str, value): + self.s['setting'] = value