diff --git a/bitbotd b/bitbotd index f678adad..77810c7e 100755 --- a/bitbotd +++ b/bitbotd @@ -113,7 +113,7 @@ if "external-modules" in config: modules = ModuleManager.ModuleManager(events, exports, timers, config, log, core_modules, extra_modules) -bot = IRCBot.Bot(directory, args, cache, config, database, events, +bot = IRCBot.Bot(directory, DATA_DIR, args, cache, config, database, events, exports, log, modules, timers) bot.add_poll_hook(cache) bot.add_poll_hook(lock_file) diff --git a/src/IRCBot.py b/src/IRCBot.py index 89779f98..1dd96f4b 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -34,9 +34,10 @@ class ListLambdaPollHook(PollHook.PollHook): return min(timeouts or [None]) class Bot(object): - def __init__(self, directory, args, cache, config, database, events, - exports, log, modules, timers): + def __init__(self, directory, data_directory, args, cache, config, database, + events, exports, log, modules, timers): self.directory = directory + self.data_directory = data_directory self.args = args self.cache = cache self.config = config