This commit is contained in:
parent
dca1c322c0
commit
d1d3a1f9e6
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user