From de389b34b817d0bcc8940730f45a2c50407df1cf Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 11 Oct 2019 15:12:26 +0100 Subject: add first real cli functionality: showing log --- start.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'start.py') diff --git a/start.py b/start.py index fbd17b23..4c1ef68d 100755 --- a/start.py +++ b/start.py @@ -96,9 +96,6 @@ events = EventManager.EventRoot(log).wrap() exports = Exports.Exports() timers = Timers.Timers(database, events, log) -control = Control.Control(events, args.database) -control.bind() - module_directories = [os.path.join(directory, "modules")] if args.external: module_directories.append(os.path.abspath(args.external)) @@ -114,6 +111,8 @@ bot.add_poll_hook(cache) bot.add_poll_hook(lock_file) bot.add_poll_hook(timers) +control = Control.Control(bot, args.database) +control.bind() bot.add_poll_source(control) if args.module: -- cgit v1.3.1-10-gc9f91