diff --git a/ubot/settings.py b/ubot/settings.py index 7671072..a23ea81 100644 --- a/ubot/settings.py +++ b/ubot/settings.py @@ -8,11 +8,11 @@ class Settings(): self.config = SafeConfigParser() self.config.read("settings.ini") - def get_config(self, key): - return self.config.get("DEFAULT", key, fallback=None) + def get_config(self, key, default=None): + return self.config.get("DEFAULT", key, fallback=default) - def get_bool(self, key): - return bool(self.config.get("DEFAULT", key, fallback=False) == "True") + def get_bool(self, key, default=False): + return bool(self.config.get("DEFAULT", key, fallback=default) == "True") def set_config(self, key, value): self.config.set("DEFAULT", key, value)