Configuration

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Bot struct {
		Token          string   `json:"token"`
		Prefixes       []string `json:"prefixes"`
		Owners         []string `json:"owners"`
		Statuses       []string `json:"statuses"`
		StatusInterval string   `json:"statusInterval"`
	} `json:"bot"`
	Miscellaneous struct {
		ColorEnabled bool `json:"colorEnabled"`
	} `json:"miscellaneous"`
}

func LoadConfiguration

func LoadConfiguration(file string, log *logrus.Logger) Configuration

Jump to

Keyboard shortcuts

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