Configuration

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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"`
	Database struct {
		Connection string `json:"connection"`
	} `json:"db"`
	Miscellaneous struct {
		ColorEnabled      bool   `json:"colorEnabled"`
		SuggestionChannel string `json:"suggestions"`
	} `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