rules

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options = []rulebot.Option{
	rulebot.RegisterRuleset(New(rules)),
}

Functions

func New

func New(rules []Rule) *cronRuleset

New returns a cron rule set

Types

type Result added in v0.0.15

type Result struct {
	Name   string
	Result []string
}

type Rule

type Rule struct {
	Name   string
	When   string
	Action func(b *rulebot.RuleBot) []string
}

Jump to

Keyboard shortcuts

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