Documentation ¶
Index ¶
- Constants
- Variables
- func EventTypeToTitle(eventType string) string
- func GetReactionFilePath() string
- func LoadReactions() (int, error)
- func ReactionCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ReactionReloadCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ReactionSaveCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ReactionSetCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func ReactionUnsetCmd(ctx *grumble.Context, con *console.SliverConsoleClient)
- func SaveReactions(reactions []core.Reaction) error
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 ¶
EventTypeToTitle - Convert an eventType to a more human friendly string
func LoadReactions ¶
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 ¶
SaveReactions - Save the reactions to the reaction file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.