diff options
| author | 2019-10-11 15:12:26 +0100 | |
|---|---|---|
| committer | 2019-10-11 15:12:26 +0100 | |
| commit | de389b34b817d0bcc8940730f45a2c50407df1cf (patch) | |
| tree | 0cc9047c7af43a438c6b2758dc6259172d1915ff /start.py | |
| parent | first draft of infrastructure for unix domain control socket (diff) | |
| signature | ||
add first real cli functionality: showing log
Diffstat (limited to 'start.py')
| -rwxr-xr-x | start.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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: |
