cfg

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: AGPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBilibiliDisableSub

func GetBilibiliDisableSub() bool

func GetBilibiliHiddenSub

func GetBilibiliHiddenSub() bool

func GetBilibiliMinFollowerCap

func GetBilibiliMinFollowerCap() int

func GetBilibiliOnlyOnlineNotify

func GetBilibiliOnlyOnlineNotify() bool

func GetBilibiliUnsub

func GetBilibiliUnsub() bool

func GetCommandPrefix

func GetCommandPrefix(commands ...string) string

func GetCustomCommandPrefix

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

func GetNotifyParallel() int

func GetTemplateEnabled

func GetTemplateEnabled() bool

func MatchCmdWithPrefix

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

func ReloadCustomCommandPrefix

func ReloadCustomCommandPrefix()

ReloadCustomCommandPrefix TODO wtf

Types

type CronJob

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

func GetCronJob() []*CronJob

Jump to

Keyboard shortcuts

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