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