Move message handler to own function

Move intents into the config
Reindent files with spaces
This commit is contained in:
Michał Gdula 2025-02-28 00:34:09 +00:00
parent 78dcdc0b46
commit b93820e9d0
3 changed files with 45 additions and 41 deletions

View file

@ -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)