Update Packages, Add Status Command, and Bugfixes (!8)

Co-authored-by: Layla Manley <layla@layla.gg>
Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
2024-01-14 20:17:43 +01:00
parent 44d45b7394
commit 7a01a77986
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 {