diff --git a/internal/config/config.go b/internal/config/config.go index 8a3e3c7..1d65799 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -12,34 +12,38 @@ import ( ) type Config struct { - Mouse bool `toml:"mouse"` - HideBlockedUsers bool `toml:"hide_blocked_users"` - Timestamps bool `toml:"timestamps"` - ShowAttachmentLinks bool `toml:"show_attachment_links"` - MessagesLimit uint8 `toml:"messages_limit"` - Editor string `toml:"editor"` - Status discord.Status `toml:"status"` + Mouse bool `toml:"mouse"` + Editor string `toml:"editor"` - Browser string `toml:"browser"` - BrowserVersion string `toml:"browser_version"` - UserAgent string `toml:"user_agent"` + HideBlockedUsers bool `toml:"hide_blocked_users"` + ShowAttachmentLinks bool `toml:"show_attachment_links"` + MessagesLimit uint8 `toml:"messages_limit"` + Timestamps bool `toml:"timestamps"` TimestampsFormat string `toml:"timestamps_format"` - Keys Keys `toml:"keys"` - Theme Theme `toml:"theme"` + + Status discord.Status `toml:"status"` + Browser string `toml:"browser"` + BrowserVersion string `toml:"browser_version"` + UserAgent string `toml:"user_agent"` + + Keys Keys `toml:"keys"` + Theme Theme `toml:"theme"` } func defaultConfig() *Config { return &Config{ - Mouse: true, + Mouse: true, + Editor: "default", + HideBlockedUsers: true, - Timestamps: false, ShowAttachmentLinks: true, MessagesLimit: 50, - Editor: "default", - TimestampsFormat: time.Kitchen, - Status: discord.OnlineStatus, + Timestamps: false, + TimestampsFormat: time.Kitchen, + + Status: discord.OnlineStatus, Browser: consts.Browser, BrowserVersion: consts.BrowserVersion, UserAgent: consts.UserAgent,