mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-20 10:24:55 +00:00
Add command aliases, cleanup types and order
This commit is contained in:
parent
a70ca23e41
commit
10acb07216
4 changed files with 58 additions and 83 deletions
|
@ -18,10 +18,6 @@ var client = http.Client{
|
|||
Timeout: 10 * time.Second,
|
||||
}
|
||||
|
||||
func RegisterTinyfoxCommands(a *app.App) {
|
||||
a.RegisterCommand("animal", registerAnimal(a))
|
||||
}
|
||||
|
||||
var animals = []string{
|
||||
"fox",
|
||||
"yeen",
|
||||
|
@ -85,6 +81,12 @@ var animalAliases = map[string]string{
|
|||
"opossum": "poss",
|
||||
}
|
||||
|
||||
func RegisterTinyfoxCommands(a *app.App) {
|
||||
a.RegisterCommand("animal", registerAnimal(a))
|
||||
|
||||
a.RegisterCommandAlias("a", "animal")
|
||||
}
|
||||
|
||||
func registerAnimal(a *app.App) app.Callback {
|
||||
return func(h *app.Handler, args []string) app.Error {
|
||||
var options struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue