Skip to content

Commit 13e92e8

Browse files
authored
main: start appservice before bot initialisation (#34)
1 parent 8387111 commit 13e92e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/meowlnir/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ func (m *Meowlnir) Run(ctx context.Context) {
308308
}
309309
}
310310

311+
go m.AS.Start()
312+
311313
bots, err := m.DB.Bot.GetAll(ctx)
312314
if err != nil {
313315
m.Log.WithLevel(zerolog.FatalLevel).Err(err).Msg("Failed to get bot list")
@@ -318,7 +320,6 @@ func (m *Meowlnir) Run(ctx context.Context) {
318320
}
319321

320322
m.EventProcessor.Start(ctx)
321-
go m.AS.Start()
322323

323324
var wg sync.WaitGroup
324325
m.MapLock.Lock()

0 commit comments

Comments
 (0)