Fixed recurring events by passing through Discord session (#2)

Co-authored-by: Layla <layla@layla.gg>
Reviewed-on: https://gitea.sumulayla.synology.me/layla/birdbot/pulls/2
This commit was merged in pull request #2.
This commit is contained in:
2023-06-10 04:45:01 -04:00
parent 91a886a81e
commit a86bdc4a65
6 changed files with 7 additions and 198 deletions

View File

@@ -73,8 +73,8 @@ func main() {
if cfg.Features.ManageEventChannels.IsEnabledByDefault() {
loader.LoadComponent(modules.NewManageEventChannelsComponent(cfg.Discord.EventCategory, cfg.Discord.ArchiveCategory, bot.Session))
}
if cfg.Features.ReccurringEvents.IsEnabledByDefault() {
loader.LoadComponent(modules.NewRecurringEventsComponent())
if cfg.Features.RecurringEvents.IsEnabledByDefault() {
loader.LoadComponent(modules.NewRecurringEventsComponent(bot.Session))
}
if cfg.Features.RoleSelection.IsEnabledByDefault() {