mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 14:10:58 -05:00
fix ai
This commit is contained in:
parent
8c0a095f00
commit
1cb3b27c59
@ -49,7 +49,7 @@ class SpiceBot_AI():
|
||||
|
||||
def setup_ai(self):
|
||||
botconfig.define_section("SpiceBot_AI", SpiceBot_AI_MainSection, validate=False)
|
||||
botconfig.aibrain = os.path.join(botconfig.homedir, botconfig.basename + '.aibrain.brn')
|
||||
botconfig.config.aibrain = os.path.join(botconfig.homedir, botconfig.basename + '.aibrain.brn')
|
||||
|
||||
def load_saved_brain(self):
|
||||
if os.path.isfile(botconfig.config.aibrain):
|
||||
|
||||
@ -12,9 +12,7 @@ import configparser
|
||||
class BotConfig():
|
||||
|
||||
def __init__(self):
|
||||
|
||||
self.dict = {}
|
||||
|
||||
# Load config
|
||||
parser = build_parser()
|
||||
if not len(sys.argv[1:]):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user