Documentation ¶
Index ¶
- Variables
- func AllCommandsBehavior(message twitch.PrivateMessage, client *twitch.Client, database *gorm.DB, ...) string
- func BotBehavior(message twitch.PrivateMessage, client *twitch.Client, database *gorm.DB, ...) string
- func Handler(client *twitch.Client, db *gorm.DB)
- func WorkingBehavior(message twitch.PrivateMessage, client *twitch.Client, database *gorm.DB, ...) string
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 BotBehavior ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.