mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-20 18:34:56 +00:00
Move message handler to own function
Move intents into the config Reindent files with spaces
This commit is contained in:
parent
78dcdc0b46
commit
b93820e9d0
3 changed files with 45 additions and 41 deletions
|
@ -23,7 +23,7 @@ func registerAnimal(a *app.App) func(h *app.Handler, args []string) {
|
|||
}
|
||||
|
||||
cmd := flag.NewFlagSet("pong", flag.ContinueOnError)
|
||||
cmd.StringVar(&options.animal, "animal", "serval", "Get an image of an animal!")
|
||||
cmd.StringVar(&options.animal, "animal", "wah", "Get an image of an animal!")
|
||||
cmd.Parse(args)
|
||||
|
||||
req, err := http.NewRequest(http.MethodGet, "https://api.tinyfox.dev/img?animal="+options.animal, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue