commit bb5e7121f4ad15722d540fb748bcbebcb05edc14
parent ab790e7371825c1c14a863adeb7480ab9a188aca
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 28 Jun 2018 22:00:34 +0200
Get some Text along with the signIn
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/.idea/usage.statistics.xml b/.idea/usage.statistics.xml
@@ -38,14 +38,14 @@
<session id="958628364">
<usages-collector id="statistics.file.extensions.edit">
<counts>
- <entry key="go" value="755" />
- <entry key="txt" value="354" />
+ <entry key="go" value="768" />
+ <entry key="txt" value="383" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
- <entry key="Go" value="755" />
- <entry key="PLAIN_TEXT" value="354" />
+ <entry key="Go" value="768" />
+ <entry key="PLAIN_TEXT" value="383" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
diff --git a/pkg/webhook/webhook.go b/pkg/webhook/webhook.go
@@ -152,6 +152,10 @@ func MessagesEndPoint(rw http.ResponseWriter, req *http.Request) {
resp := dflow.DoSignIn()
// Do things with the context you just retrieved
dff := &df.Fulfillment{
+ FulfillmentMessages: df.Messages{
+ df.ForGoogle(df.SingleSimpleResponse("Starting Auth Process", "Starting Auth Process")),
+ {RichMessage: df.Text{Text: []string{"Starting Auth Process"}}},
+ },
FollowupEventInput: resp,
}