Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &commands.YAGCommand{ CmdCategory: commands.CategoryFun, Name: "Inspire", Aliases: []string{"insp"}, Description: "Shows 'inspirational' quotes from inspirobot.me...", RunInDM: true, DefaultEnabled: true, SlashCommandEnabled: true, RunFunc: func(data *dcmd.Data) (interface{}, error) { inspireURL, err := inspireFromAPI() if err != nil { return fmt.Sprintf("%s\nInspiroBot wonky... sad times :/", err), err } embed := &discordgo.MessageEmbed{ Description: "Here's an inspirational quote:", Color: int(rand.Int63n(0xffffff)), Image: &discordgo.MessageEmbedImage{ URL: inspireURL, }, } return embed, nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.