diff --git a/src/IRCBot.py b/src/IRCBot.py index 596a9e66..f4c96627 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -4,8 +4,9 @@ from . import ModuleManager class Bot(object): - def __init__(self, args, config, database, events, exports, line_handler, - log, modules, timers): + def __init__(self, directory, args, config, database, events, exports, + line_handler, log, modules, timers): + self.directory = directory self.args = args self.config = config self.database = database diff --git a/start.py b/start.py index 55d084fc..4094bfbd 100755 --- a/start.py +++ b/start.py @@ -40,8 +40,8 @@ line_handler = IRCLineHandler.LineHandler(events, timers) modules = modules = ModuleManager.ModuleManager(events, exports, config, log, os.path.join(directory, "modules")) -bot = IRCBot.Bot(args, config, database, events, exports, line_handler, log, - modules, timers) +bot = IRCBot.Bot(directory, args, config, database, events, exports, + line_handler, log, modules, timers) whitelist = bot.get_setting("module-whitelist", []) blacklist = bot.get_setting("module-blacklist", [])