rules

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 10 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 Rule

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

Jump to

Keyboard shortcuts

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