Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command int
Enumeration of the basic types of commands that Gobottas supports
func StrToCommand ¶
Parse select strings into commands; note that there are several Commands that no string will parse into
type Interceptor ¶
Interceptors modify the message. Every interceptor is called on every message, most of the time this is a no-op
type Message ¶
type Message struct { // Provided by the Parser Command Command // Basic command type of the message Source *Source // Data from discord about the message origin Args []string // parsed args (if there are any) Help string // Initialized by Parser, Modified by Interceptors Response *Response }
Every message that Gobottas sees is parsed into a Message and sent through the rest of the application
type Response ¶
type Response struct { ChannelId Snowflake Text string Embed *discordgo.MessageEmbed }
type Session ¶
type Session interface { ChannelMessageSend(channelId string, msg string) (*discordgo.Message, error) ChannelMessageSendEmbed(channelId string, embed *discordgo.MessageEmbed) (*discordgo.Message, error) }
Session interfaces with the discordgo Session struct using only the relevant functions for Gobottas
Click to show internal directories.
Click to hide internal directories.