How to use the dashbot.logIncoming function in dashbot

To help you get started, we’ve selected a few dashbot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hubtype / botonic / packages / botonic-plugin-dashbot / src / index.js View on Github external
async post({ input, session, lastRoutePath, response }) {
    const messageInDashbot = {
      text: input.data,
      userId: session.user.id
    }
    await dashbot.logIncoming(messageInDashbot)

    const messageOutDashbot = {
      text: response,
      userId: session.user.id
    }
    await dashbot.logOutgoing(messageOutDashbot)
  }
}

dashbot

Analytics for your bot

SEE LICENSE IN LICENSE
Latest version published 3 years ago

Package Health Score

49 / 100
Full package analysis