mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
RETURN
This commit is contained in:
parent
56d502098e
commit
fa30a91a11
@ -46,6 +46,8 @@ class BotConfig():
|
|||||||
return eval("self.config.core." + name)
|
return eval("self.config.core." + name)
|
||||||
elif name.lower() in self.dict["core"].keys():
|
elif name.lower() in self.dict["core"].keys():
|
||||||
return self.dict["core"][str(name).lower()]
|
return self.dict["core"][str(name).lower()]
|
||||||
|
elif hasattr(self.config, name):
|
||||||
|
return eval("self.config." + name)
|
||||||
else:
|
else:
|
||||||
stderr(str(name))
|
stderr(str(name))
|
||||||
return None
|
return None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user