config

package
v0.0.0-...-dcb018a Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: AGPL-3.0 Imports: 4 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 {
	ConcurrencyLimit uint
	IgnoreTick       bool
	Listener         string
	Prefix           string
	BotCredentials   Credentials
	Subreddits       []SubredditPreference
}

func ParseFile

func ParseFile(path string) (*Config, error)

func (*Config) GetPrefix

func (cfg *Config) GetPrefix() string

type Credentials

type Credentials struct {
	ID       string
	Secret   string
	Username string
	Password string
}

type SubredditPreference

type SubredditPreference struct {
	Name             string
	PageFetchLimit   uint
	ConcurrencyLimit uint
	IgnoreTick       bool
}

Jump to

Keyboard shortcuts

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