checkKeywords.js
394 Bytes
const setKeywordsFlexMessage = require("../message/setKeywordsFlexMessage")
const db = require("../../apis/database");
const checkKeywords = (client, event) => {
db.getKeywordsByUserId(event.source.userId).then((keywords) => {
flexMessage = setKeywordsFlexMessage(keywords);
client.replyMessage(event.replyToken, flexMessage)
})
};
module.exports = { checkKeywords };