Add IRCBot.directory, in case we need it.
This commit is contained in:
parent
df2ebfb315
commit
dfe5cb0be8
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
4
start.py
4
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", [])
|
||||
|
|
Loading…
Reference in a new issue