cfg

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBilibiliDisableSub added in v1.0.6

func GetBilibiliDisableSub() bool

func GetBilibiliHiddenSub added in v1.0.6

func GetBilibiliHiddenSub() bool

func GetBilibiliMinFollowerCap added in v1.0.6

func GetBilibiliMinFollowerCap() int

func GetBilibiliOnlyOnlineNotify added in v1.0.6

func GetBilibiliOnlyOnlineNotify() bool

func GetBilibiliUnsub added in v1.0.6

func GetBilibiliUnsub() bool

func GetCommandPrefix

func GetCommandPrefix(commands ...string) string

func GetCustomCommandPrefix added in v1.0.7

func GetCustomCommandPrefix() map[string]string

func GetCustomGroupCommand

func GetCustomGroupCommand() []string

func GetCustomPrivateCommand

func GetCustomPrivateCommand() []string

func GetEmitInterval

func GetEmitInterval() time.Duration

func GetLargeNotifyLimit

func GetLargeNotifyLimit() int

func GetNotifyParallel added in v1.0.6

func GetNotifyParallel() int

func GetTemplateEnabled added in v1.0.7

func GetTemplateEnabled() bool

func MatchCmdWithPrefix added in v1.0.7

func MatchCmdWithPrefix(cmd string) (prefix string, command string, err error)

func ReloadCustomCommandPrefix added in v1.0.8

func ReloadCustomCommandPrefix()

ReloadCustomCommandPrefix TODO wtf

Types

type CronJob added in v1.0.7

type CronJob struct {
	Cron         string `yaml:"cron"`
	TemplateName string `yaml:"templateName"`
	Target       struct {
		Group   []int64 `yaml:"group"`
		Private []int64 `yaml:"private"`
	} `yaml:"target"`
}

func GetCronJob added in v1.0.7

func GetCronJob() []*CronJob

Jump to

Keyboard shortcuts

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