config

package
v0.0.0-...-a6fa872 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 3 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 {
	DiscordCfg Discord `yaml:"discord"`
}

Config is the bot's config settings

func NewConfig

func NewConfig() (*Config, error)

NewConfig returns a new decoded Config struct

type Discord

type Discord struct {
	Token    string   `yaml:"token"`
	Channels []string `yaml:"channels"`
}

Discord is the Discord specific configuration

Jump to

Keyboard shortcuts

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