store .data_directory on bot object
This commit is contained in:
parent
2bf277bbfc
commit
b4deae3e2d
2 changed files with 4 additions and 3 deletions
2
bitbotd
2
bitbotd
|
@ -113,7 +113,7 @@ if "external-modules" in config:
|
||||||
modules = ModuleManager.ModuleManager(events, exports, timers, config, log,
|
modules = ModuleManager.ModuleManager(events, exports, timers, config, log,
|
||||||
core_modules, extra_modules)
|
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)
|
exports, log, modules, timers)
|
||||||
bot.add_poll_hook(cache)
|
bot.add_poll_hook(cache)
|
||||||
bot.add_poll_hook(lock_file)
|
bot.add_poll_hook(lock_file)
|
||||||
|
|
|
@ -34,9 +34,10 @@ class ListLambdaPollHook(PollHook.PollHook):
|
||||||
return min(timeouts or [None])
|
return min(timeouts or [None])
|
||||||
|
|
||||||
class Bot(object):
|
class Bot(object):
|
||||||
def __init__(self, directory, args, cache, config, database, events,
|
def __init__(self, directory, data_directory, args, cache, config, database,
|
||||||
exports, log, modules, timers):
|
events, exports, log, modules, timers):
|
||||||
self.directory = directory
|
self.directory = directory
|
||||||
|
self.data_directory = data_directory
|
||||||
self.args = args
|
self.args = args
|
||||||
self.cache = cache
|
self.cache = cache
|
||||||
self.config = config
|
self.config = config
|
||||||
|
|
Loading…
Reference in a new issue