Merge remote-tracking branch 'refs/remotes/origin/prototype' into prototype
This commit is contained in:
commit
7b6ab7444d
1 changed files with 14 additions and 18 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue