config

package
v0.0.0-...-9298588 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Lang map[string]Strings
)

Functions

func VerifyGuild

func VerifyGuild(guild *Guild) error

Types

type Config

type Config struct {
	Debug   bool
	Help    string
	Discord struct {
		Token  string
		Status string
	}
	Db struct {
		Kind        string
		Parameter   string
		Tableprefix string
	}
	Guild     Guild
	LogPeriod int64 `yaml:"log_period"`
}
var CurrentConfig Config

type Guild

type Guild struct {
	Prefix       string
	Lang         string
	Ignore       []string
	ParsedIgnore []*regexp.Regexp `json:"-" yaml:"-"`
	Alert        struct {
		Type    string
		Message string
		React   string
		Reject  string
	}
	Domain struct {
		Mode string
		List []string
	}
	ChannelGroup map[string]string `yaml:"channel"`
}

type Strings

type Strings struct {
	Lang     string
	Help     string
	CurrConf string
	Usage    usagestr
	Error    errorstr
}

Jump to

Keyboard shortcuts

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