helpers

package
v0.0.0-...-42af683 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreCommandAndMentionIndicesInvalid

func AreCommandAndMentionIndicesInvalid(cmdIndex int, mentionIndex int) bool

func AreCommandAndMentionIndicesMismatched

func AreCommandAndMentionIndicesMismatched(cmdIndex int, mentionIndex int) bool

func CanExecuteCommand

func CanExecuteCommand(context context.Context, service service.Service, badges string, twitchChannelId string) bool

func FindCommandAndMentionIndices

func FindCommandAndMentionIndices(words []string) (int, int)

func FindCommandIndices

func FindCommandIndices(words []string) int

func GetCommandVariables

func GetCommandVariables(cmdData *model.BotCommand, message twitch.PrivateMessage) *model.CommandVariable

func ParseMessage

func ParseMessage(message string) (string, []string)

func ParseSysCmdMessage

func ParseSysCmdMessage(message string) (string, []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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