config

package
v3.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token             string
	BotPrefix         string
	Dni               [][]string
	LinkKuHodine      map[string]string
	RoleIDs           []string
	Casy              []string
	DefaultChannelsID []string
	Hodiny            []int
	Minuty            []int
	RoleIDSstring     string
	SchoolDays        []*SchoolDay
	EndMessage        string
	Version           string = "v3.0.9"
)

Functions

func AppendIfMissing

func AppendIfMissing(slice []string, i string) []string

func ReadConfig

func ReadConfig() error

func SplitCasy

func SplitCasy(casy []string) ([]int, []int)

Types

type SchoolDay

type SchoolDay struct {
	Hodiny []string
	Linky  []string
	Casy   []string
	// contains filtered or unexported fields
}

func NewSchoolDay

func NewSchoolDay(hodiny, linky, casy []string, day time.Weekday) *SchoolDay

Jump to

Keyboard shortcuts

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