Update Packages, Add Status Command, and Bugfixes

This commit is contained in:
2024-01-14 20:14:02 +01:00
parent 44d45b7394
commit a869b8529e
9 changed files with 119 additions and 41 deletions

View File

@@ -29,7 +29,7 @@ func main() {
var db_file string
var version bool
flag.StringVar(&config_file, "c", defaultConfigPath, "Path to config file")
flag.StringVar(&db_file, "db", defaultDBPath, "Path to store persistant data")
flag.StringVar(&db_file, "db", defaultDBPath, "Path to store persistent data")
flag.BoolVar(&version, "v", false, "List version")
flag.Parse()
@@ -80,6 +80,9 @@ func main() {
if cfg.Features.RecurringEvents.IsEnabled() {
loader.LoadComponent(modules.NewRecurringEventsComponent(bot.Session))
}
if cfg.Features.StatusPortal.IsEnabled() {
loader.LoadComponent(modules.NewStatusComponent(cfg.StatusPortal.URL))
}
if cfg.Features.RoleSelection.IsEnabledByDefault() {
for _, v := range cfg.Discord.RoleSelections {