reaction

package
v1.15.16 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: GPL-3.0 Imports: 17 Imported by: 1

README

Reaction

Commands to set a reaction, or unset a reaction. Reactions allow the operator to automate commands in response to event(s).

Documentation

Index

Constants

View Source
const (
	ReactionFileName = "reactions.json"
)

Variables

View Source
var (
	// ErrNonReactableEvent - Event does not exist or is not supported by reactions
	ErrNonReactableEvent = errors.New("non-reactable event type")
)

Functions

func EventTypeToTitle

func EventTypeToTitle(eventType string) string

EventTypeToTitle - Convert an eventType to a more human friendly string

func GetReactionFilePath

func GetReactionFilePath() string

GetReactionFilePath - Get the

func LoadReactions

func LoadReactions() (int, error)

LoadReactions - Save the reactions to the reaction file

func ReactionCmd

func ReactionCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ReactionCmd - Manage reactions to events

func ReactionReloadCmd

func ReactionReloadCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ReactionSaveCmd - Manage reactions to events

func ReactionSaveCmd

func ReactionSaveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ReactionSaveCmd - Manage reactions to events

func ReactionSetCmd

func ReactionSetCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ReactionSetCmd - Set a reaction upon an event

func ReactionUnsetCmd

func ReactionUnsetCmd(ctx *grumble.Context, con *console.SliverConsoleClient)

ReactionUnsetCmd - Unset a reaction upon an event

func SaveReactions

func SaveReactions(reactions []core.Reaction) error

SaveReactions - Save the reactions to the reaction file

Types

This section is empty.

Jump to

Keyboard shortcuts

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