Commit 0d6f3606 authored by Tammo Ronke's avatar Tammo Ronke

text3

parent 2f781881
......@@ -3,8 +3,9 @@ var suggestionStore = require("../store/suggestion");
module.exports = [
(session, args, next) => {
const choices = ["Not for me", "It was ok", "Loved it"];
session.dialogData.vote = args;
const choices = ["Not for me", "It was ok", "Loved it"];
const reply = new builder.Message(session).addAttachment(
new builder.HeroCard(session)
.text(
......@@ -34,7 +35,7 @@ module.exports = [
case 0: {
session.send(
`Sorry to hear. Do you want to read more about ${
session.dialogData.topic
session.dialogData.vote.topic
} or learn about another topic?`
);
break;
......@@ -42,7 +43,7 @@ module.exports = [
case 1: {
session.send(
`Alright. Do you want to read some more about ${
session.dialogData.topic
session.dialogData.vote.topic
} or some other topic?`
);
break;
......@@ -50,7 +51,7 @@ module.exports = [
case 2: {
session.send(
`Awesome, so you want to read more about ${
session.dialogData.topic
session.dialogData.vote.topic
}?`
);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment