Commit 9d5be951 authored by Tammo Ronke's avatar Tammo Ronke

v23424324wer32sdfkltiorgr

parent a99e521f
var builder = require("botbuilder");
var answers = require("../speech/answers");
var store = require("../store/suggestion");
module.exports = [
(session, args, next) => {
......@@ -10,7 +11,15 @@ module.exports = [
session.send(msg);
setTimeout(() => next(), 800);
} else {
session.replaceDialog("recent");
if (store.getRecentTopics(6, session.userData) === [])
session.replaceDialog("recent");
else {
const msg = new builder.Message(session).addAttachment(
welcomeCard(session)
);
session.send(msg);
session.endDialog();
}
}
},
(session, results, next) => {
......
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