commit 06ceca9ca57227f8fe4cfeda9935cd7ae3f30fc0
parent 13d22fe8337ed4a812087d850ecbfeefc088c572
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 3 Jun 2018 10:57:32 +0200
Use fork for dialogflow-go-webhook
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/go.mod b/go.mod
@@ -1,6 +1,7 @@
module github.com/OpenHomeAuto/AiListener
require (
+ github.com/OpenHomeAuto/dialogflow-go-webhook v1.0.0
github.com/bjarneh/latinx v0.0.0-20120329061922-4dfe9ba2a293
github.com/gorilla/mux v1.6.2
github.com/leboncoin/dialogflow-go-webhook v1.0.0
diff --git a/wsListener/server.go b/wsListener/server.go
@@ -3,9 +3,9 @@ package wsListener
import (
"encoding/json"
"fmt"
+ df "github.com/OpenHomeAuto/dialogflow-go-webhook"
"github.com/bjarneh/latinx"
"github.com/gorilla/mux"
- df "github.com/leboncoin/dialogflow-go-webhook"
"log"
"net/http"
)
@@ -76,14 +76,14 @@ func DFHandler(w http.ResponseWriter, r *http.Request) {
}
func playMusicDispatch(dfr *df.Request, w http.ResponseWriter) *df.Fulfillment {
- type params struct {
+ type MusicParams struct {
Artist string `json:"music-artist"`
Room string `json:"room"`
Genre string `json:"MusikGenre"`
Title string `json:"title"`
}
- var p params
+ var p MusicParams
var resp *df.Fulfillment
// Retrieve the params of the request