rules

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 9 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 map[string]Rule) *cronRuleset

New returns a cron rule set

Types

type Rule

type Rule struct {
	When   string
	Action func() []model.Message
}

Jump to

Keyboard shortcuts

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