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:
5
main.go
5
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user