Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &commands.YAGCommand{ CmdCategory: commands.CategoryFun, Name: "Roast", Aliases: []string{"insult"}, Description: "Sends a random roast", Arguments: []*dcmd.ArgDef{ {Name: "Target", Type: dcmd.User}, }, DefaultEnabled: true, SlashCommandEnabled: true, RunFunc: func(data *dcmd.Data) (interface{}, error) { target := "a random person nearby" if data.Args[0].Value != nil { target = data.Args[0].Value.(*discordgo.User).Username } embed := &discordgo.MessageEmbed{} embed.Title = fmt.Sprintf(`%s roasted %s`, data.Author.Username, target) embed.Description = html.UnescapeString(randomRoast()) return embed, nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.