commands

package
v0.0.0-...-9986994 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllCommands = objects.Command{
	Name:          "AllCommands",
	Description:   "Utilizado para visualizar todos os comandos disponíveis.",
	Pattern:       regexp.MustCompile(`(^!commands$)|(^!comandos$)`),
	CaseSensitive: false,
	Cooldown:      &objects.Cooldown{Global: 10, User: 0},
	Behavior:      AllCommandsBehavior,
}
View Source
var AvailableCommands = []objects.Command{
	Bot,
	Working,
}

Os comandos nessa lista serão habilitados.

View Source
var Bot = objects.Command{
	Name:          "Bot",
	Description:   "Algumas informações sobre o bot.",
	Pattern:       regexp.MustCompile(`^!bot.*`),
	CaseSensitive: false,
	Cooldown:      &objects.Cooldown{Global: 120, User: 0},
	Behavior:      BotBehavior,
}
View Source
var Working = objects.Command{
	Name:          "Working?",
	Description:   "Comando utilizado por moderadores para verificar a atividade do bot.",
	Pattern:       regexp.MustCompile(`^!working\?$`),
	CaseSensitive: false,
	Cooldown:      &objects.Cooldown{Global: 0, User: 0},
	Behavior:      WorkingBehavior,
}

Functions

func AllCommandsBehavior

func AllCommandsBehavior(message twitch.PrivateMessage, client *twitch.Client, database *gorm.DB, command *objects.Command) string

func BotBehavior

func BotBehavior(message twitch.PrivateMessage, client *twitch.Client, database *gorm.DB, command *objects.Command) string

func Handler

func Handler(client *twitch.Client, db *gorm.DB)

func WorkingBehavior

func WorkingBehavior(message twitch.PrivateMessage, client *twitch.Client, database *gorm.DB, command *objects.Command) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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