ailistener

git clone git://archive.git.mtrnord.blog/OpenHomeAuto/ailistener.git
Log | Files | Refs | LICENSE

commit 07a5c586d990e6516e86e4443e5544e947045356
parent 0f834c3dd80cca795f4c6a274fcbf9da50f083ba
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 28 Jun 2018 21:42:48 +0200

Get details

Diffstat:
M.idea/usage.statistics.xml | 4++--
Mpkg/webhook/webhook.go | 7+++----
2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/.idea/usage.statistics.xml b/.idea/usage.statistics.xml @@ -38,13 +38,13 @@ <session id="958628364"> <usages-collector id="statistics.file.extensions.edit"> <counts> - <entry key="go" value="603" /> + <entry key="go" value="611" /> <entry key="txt" value="337" /> </counts> </usages-collector> <usages-collector id="statistics.file.types.edit"> <counts> - <entry key="Go" value="603" /> + <entry key="Go" value="611" /> <entry key="PLAIN_TEXT" value="337" /> </counts> </usages-collector> diff --git a/pkg/webhook/webhook.go b/pkg/webhook/webhook.go @@ -113,10 +113,9 @@ func MessagesEndPoint(rw http.ResponseWriter, req *http.Request) { respPJ, _ := dfr.QueryResult.Parameters.MarshalJSON() log.Println("respPJ: ", string(respPJ)) for _, v := range dfr.QueryResult.OutputContexts { - if v.Name == "actions_intent_sign_in" { - respOCPJ, _ := v.Parameters.MarshalJSON() - log.Println("respOCPJ: ", string(respOCPJ)) - } + log.Println(v) + respOCPJ, _ := v.Parameters.MarshalJSON() + log.Println("respOCPJ: ", string(respOCPJ)) } /* type params struct {