config

package
v0.0.0-...-bd7e42f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Rooms          []string
	User           string
	Nick           string
	Server         string
	TLS            bool
	CommandPrefix  string
	EnabledModules []string
	Reddit         RedditConfig
	Untappd        UntappdConfig
	Quotes         QuotesConfig
	Tell           TellConfig
	Tv             TvConfig
	Seen           SeenConfig
	Reminders      RemindersConfig
}

func Default

func Default() Config

Default returns the default config.

func Load

func Load(filename string) (Config, error)

Load loads the config from the specified json file.

type QuotesConfig

type QuotesConfig struct {
	QuotesDirectory string
}

type RedditConfig

type RedditConfig struct {
	ClientID     string
	ClientSecret string
	Username     string
	Password     string
}

type RemindersConfig

type RemindersConfig struct {
	RemindersFile string
}

type SeenConfig

type SeenConfig struct {
	SeenFile string
}

type TellConfig

type TellConfig struct {
	TellFile string
}

type TvConfig

type TvConfig struct {
	ApiKey string
}

type UntappdConfig

type UntappdConfig struct {
	ClientID     string
	ClientSecret string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL