diff --git a/internal/settings/settings.go b/internal/settings/settings.go index 2caa9c6..fc416ba 100644 --- a/internal/settings/settings.go +++ b/internal/settings/settings.go @@ -11,18 +11,16 @@ import ( ) type Settings struct { - API API - DailyScripture DailyScripture `toml:"daily_scripture"` - System System - Translations Translations - Chat Chat + API *API `toml:"api"` + DailyScripture *DailyScripture `toml:"daily_scripture"` + Translations *Translations `toml:"translations"` + System *System `toml:"system"` + Service *Service `toml:"service"` + Chat *Chat `toml:"chat"` } type API struct { - BaseURL string `toml:"base_url"` - Schedule string - Rotation string - User string + BaseURL string `toml:"base_url"` } type Chat struct { @@ -30,10 +28,8 @@ type Chat struct { } type DailyScripture struct { - UserSubmitted bool `toml:"user_submitted"` - Schedule string - Rotation string - User string + UserSubmitted bool `toml:"user_submitted"` + Schedule string `toml:"schedule"` } type System struct { @@ -41,14 +37,14 @@ type System struct { } type Service struct { - Method string - Webhook *Webhook + Method string `toml:"method"` + Webhook *Webhook `toml:"webhook"` } type Webhook struct { - URI string - Port int - Host string + URI string `toml:"uri"` + Port int `toml:"port"` + Host string `toml:"host"` } type Translations struct {