Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrJobNotFound = errors.New("no such job is registered")
Functions ¶
This section is empty.
Types ¶
type ActionProvider ¶
type ActionProvider interface {
Init(*types.Config, *discord.Session, storage.Storer, *forum.ForumClient) (string, error)
Register() []common.Action
}
ActionProvider describes a type that provides a registration function that provides a set of actions that have some random chance to be called on a schedule. The `chance` parameter controls the probability the `call` function is called each time a cron job specified by `schedule` occurs.
Click to show internal directories.
Click to hide internal directories.