Last active
November 8, 2018 14:38
-
-
Save zaoldyeck/c0cea6a2f41b8295de1c7af7237b06ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {LineHandler} = require('bottender') | |
const olami = require('./nlp/Olami') | |
exports.lineHandler = new LineHandler() | |
.onText(async context => { | |
const text = context.event.text | |
const userId = context._session.user.id | |
const reply = await olami.nli(text, userId) | |
await context.reply([reply.toLineMessage()]) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment