Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &commands.YAGCommand{ CmdCategory: commands.CategoryFun, Name: "Reverse", Aliases: []string{"r", "rev"}, Description: "Reverses the text given", RunInDM: true, RequiredArgs: 1, Arguments: []*dcmd.ArgDef{ &dcmd.ArgDef{Name: "What", Type: dcmd.String}, }, RunFunc: func(data *dcmd.Data) (interface{}, error) { toFlip := data.Args[0].Str() out := "" for _, r := range toFlip { out = string(r) + out } return ":upside_down: " + out, nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.