feat: bot status
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Dawid Wysokiński 2022-10-28 05:38:52 +02:00
parent dca1c322c0
commit d1d3a1f9e6
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892

View File

@ -43,6 +43,8 @@ func NewBot(token string, groupSvc GroupService, monitorSvc MonitorService, clie
return nil, fmt.Errorf("discordgo.New: %w", err)
}
s.Identify.Intents = discordgo.IntentsNone
b := &Bot{
s: s,
c: cron.New(
@ -56,9 +58,7 @@ func NewBot(token string, groupSvc GroupService, monitorSvc MonitorService, clie
choiceSvc: client,
}
b.s.Identify.Intents = discordgo.IntentsNone
s.AddHandler(b.handleSessionReady)
b.s.AddHandler(b.handleSessionReady)
return b, nil
}