Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Discord *Discord `json:"discord"` Mongo *Mongo `json:"mongo"` Repost *Repost `json:"repost"` Pixiv *Pixiv `json:"pixiv"` SauceNAO string `json:"saucenao"` Sentry string `json:"sentry"` Quotes []*Quote `json:"quotes"` // contains filtered or unexported fields }
Config is an application configuration struct.
func (*Config) RandomQuote ¶
type Discord ¶
Discord stores Discord bot configuration. Acquire bot token on Discord's Developer Portal. Prefixes must be below 5 characters each. AuthorID is required to enable developer commands. Empty AuthorID may lead to undefined behavior.
type Pixiv ¶
type Pixiv struct { AuthToken string `json:"auth_token"` RefreshToken string `json:"refresh_token"` ProxyHost string `json:"proxy_host"` }
Pixiv stores Pixiv login information. Guide how to acquire auth and refresh tokens: https://gist.github.com/upbit/6edda27cb1644e94183291109b8a5fde
Click to show internal directories.
Click to hide internal directories.