Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequest ¶
type APIRequest struct {
// contains filtered or unexported fields
}
APIRequest represents an api request action.
func (APIRequest) Process ¶
func (a APIRequest) Process(s *discordgo.Session, m *discordgo.MessageCreate) (string, error)
Process executes the action.
type APIRequestConfig ¶
APIRequestConfig represents the config for an api request action.
type Action ¶
Action represents a single runnable action.
func NewAPIRequest ¶
NewAPIRequest creates a new api request action.
func NewSimpleChat ¶
NewSimpleChat creates a new simple chat action.
type ActionDefinition ¶
type ActionDefinition struct { Name string Type string Trigger string Config map[string]interface{} }
ActionDefinition represents the definition for a custom action.
type CustomAction ¶
type CustomAction struct { Definition ActionDefinition Action Action }
CustomAction represents a custom action.
func NewAction ¶
func NewAction(def ActionDefinition) (*CustomAction, error)
NewAction creates a new custom action.
type SimpleChat ¶
type SimpleChat struct {
// contains filtered or unexported fields
}
SimpleChat represents a simple chat action.
func (SimpleChat) Process ¶
func (a SimpleChat) Process(s *discordgo.Session, m *discordgo.MessageCreate) (string, error)
Process executes the action.
type SimpleChatConfig ¶
type SimpleChatConfig struct {
Responses []string
}
SimpleChatConfig represents the config for a simple chat action.
Click to show internal directories.
Click to hide internal directories.