justusbot/internal/settings/settings.go

32 lines
525 B
Go
Raw Normal View History

package settings
import (
"github.com/pelletier/go-toml"
)
type Setting struct {
API API
DailyScripture DailyScripture `toml:"daily_scripture"`
System System
Translations Translations
}
type API struct {
BaseURL string `toml:"base_url"`
Schedule string
Rotation string
User string
}
type DailyScripture struct {
UserSubmitted bool `toml:"user_submitted"`
}
type System struct {
TimeZone string `toml:"timezone"`
}
type Translations struct {
BaseDir string `toml:"basedir"`
Active []string `toml:"active"`
}