logger.Info("Telegram bot started")
}
- return daemonServe(ctx, listener, telegram, whatsapp, schedules, func(notify func(Event)) (*TurnLoop, error) {
+ err = daemonServe(ctx, listener, telegram, whatsapp, schedules, func(notify func(Event)) (*TurnLoop, error) {
return root.Loop(whatsapp, notify)
}, agents[1:]...)
+ if err != nil {
+ return fmt.Errorf("serve daemon: %w", err)
+ }
+
+ return nil
}
// daemonListenSocket listens on the Unix socket at path, with mode 0600. The