Add IRCBot.directory, in case we need it.

This commit is contained in:
jesopo 2018-09-29 09:24:26 +01:00
parent df2ebfb315
commit dfe5cb0be8
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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", [])