package main

import (
	// "fmt"
	"log"
	"net/http"

	"github.com/codykrieger/jeeves"
)

func main() {
	j := jeeves.New()
	j.RegisterSkill(&jeeves.Skill{
		Name:          "Hello",
		Endpoint:      "/skills/hello",
		ApplicationID: "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe",
		Handler:       helloHandler,
	})
	log.Fatal(http.ListenAndServe(":3000", j))
}

func helloHandler(skill *jeeves.Skill, req *jeeves.ASKRequest) *jeeves.ASKResponse {
	resp := jeeves.NewASKResponse(req)

	if req.IsLaunchRequest() {
		resp.Body.OutputSpeech = jeeves.NewASKOutputSpeech("Hello there!")
	} else if req.IsIntentRequest() {
	} else if req.IsSessionEndedRequest() {
	}

	return resp
}

package main

import (
	// "fmt"
	"log"
	"net/http"

	"github.com/codykrieger/jeeves"
)

func main() {
	j := jeeves.New()
	j.RegisterSkill(&jeeves.Skill{
		Name:          "Hello",
		Endpoint:      "/skills/hello",
		ApplicationID: "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe",
		Handler:       helloHandler,
	})
	log.Println("Listening...")
	log.Fatal(http.ListenAndServe(":3000", j))
}

func helloHandler(skill *jeeves.Skill, req *jeeves.ASKRequest) *jeeves.ASKResponse {
	resp := jeeves.NewASKResponse(req)

	if req.IsLaunchRequest() {
		resp.Body.OutputSpeech = jeeves.NewASKOutputSpeech("Hello there!")
	} else if req.IsIntentRequest() {
	} else if req.IsSessionEndedRequest() {
	}

	return resp
}

Make it easier to see when the example app is listening.
Make it easier to see when the example app is listening.
