Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerType ¶ added in v1.3.0
HandlerType is a type for command handler.
type Payload ¶
type Payload struct { Cfg *config.Config Event *botgolang.Event LogInfo *log.Logger LogError *log.Logger }
Payload is a struct for events payload.
type SyncCommands ¶ added in v1.3.0
SyncCommands is a global map of chats which should be locked during command execution.
func NewSyncCommands ¶ added in v1.3.0
func NewSyncCommands(commands []string) *SyncCommands
func (*SyncCommands) Decorate ¶ added in v1.3.0
func (s *SyncCommands) Decorate(command, chat string, f HandlerType) HandlerType
Decorate returns a decorated function for the chat.
Click to show internal directories.
Click to hide internal directories.