Commit c90a5871 authored by Eric Meier's avatar Eric Meier
parents 03e11ded 471f4cf1
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