Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BotVerified bool `json:"botVerified"` LogsDirectory string `json:"logsDirectory"` Archive bool `json:"archive"` AdminAPIKey string `json:"adminAPIKey"` Username string `json:"username"` OAuth string `json:"oauth"` ListenAddress string `json:"listenAddress"` Admins []string `json:"admins"` Channels []string `json:"channels"` ClientID string `json:"clientID"` ClientSecret string `json:"clientSecret"` LogLevel string `json:"logLevel"` OptOut map[string]bool `json:"optOut"` // contains filtered or unexported fields }
Config application configuration
func (*Config) AddChannels ¶
AddChannels adds channels to the config
func (*Config) IsOptedOut ¶
IsOptedOut check if a user is opted out
func (*Config) OptOutUsers ¶
OptOutUsers will opt out a user
func (*Config) RemoveChannels ¶
RemoveChannels removes channels from the config
func (*Config) RemoveOptOut ¶
AddChannels remove user from opt out
func (*Config) SetupLogger ¶ added in v1.0.3
func (cfg *Config) SetupLogger()
Click to show internal directories.
Click to hide internal directories.