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)
|
return nil, fmt.Errorf("discordgo.New: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.Identify.Intents = discordgo.IntentsNone
|
||||||
|
|
||||||
b := &Bot{
|
b := &Bot{
|
||||||
s: s,
|
s: s,
|
||||||
c: cron.New(
|
c: cron.New(
|
||||||
|
@ -56,9 +58,7 @@ func NewBot(token string, groupSvc GroupService, monitorSvc MonitorService, clie
|
||||||
choiceSvc: client,
|
choiceSvc: client,
|
||||||
}
|
}
|
||||||
|
|
||||||
b.s.Identify.Intents = discordgo.IntentsNone
|
b.s.AddHandler(b.handleSessionReady)
|
||||||
|
|
||||||
s.AddHandler(b.handleSessionReady)
|
|
||||||
|
|
||||||
return b, nil
|
return b, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user