Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const {LineHandler, MessengerHandler} = require('bottender')
- const olami = require('./nlp/Olami')
- exports.lineHandler = new LineHandler()
- .onText(async context => {
- const text = context.event.text
- const reply = await olami.nli(text)
- await context.reply([reply.toLineMessage()])
- }
- )
Add Comment
Please, Sign In to add comment