mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
dict
This commit is contained in:
parent
2f108d1174
commit
b6f3b363e5
@ -50,8 +50,8 @@ class BotConfig():
|
||||
"""We will try to find a core value, or return None"""
|
||||
if hasattr(self.config.core, name):
|
||||
return eval("self.config.core." + name)
|
||||
elif name.lower() in self.dict["core"].keys():
|
||||
return self.dict["core"][str(name).lower()]
|
||||
# elif name.lower() in self.dict["core"].keys():
|
||||
# return self.dict["core"][str(name).lower()]
|
||||
elif hasattr(self.config, name):
|
||||
return eval("self.config." + name)
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user