aboutsummaryrefslogtreecommitdiff
path: root/start.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-11 15:12:26 +0100
committerGravatar jesopo2019-10-11 15:12:26 +0100
commitde389b34b817d0bcc8940730f45a2c50407df1cf (patch)
tree0cc9047c7af43a438c6b2758dc6259172d1915ff /start.py
parentfirst draft of infrastructure for unix domain control socket (diff)
signature
add first real cli functionality: showing log
Diffstat (limited to 'start.py')
-rwxr-xr-xstart.py5
1 files changed, 2 insertions, 3 deletions
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: