botbuilder-redis
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

botbuilder-redis Build Status Coverage Status npm version

Redis adapter for Microsoft BotBuilder.

Usage

'use strict'
 
const builder = require('botbuilder');
const RedisStorage = require('botbuilder-redis');
const redis = require('redis');
const client = redis.createClient();
 
const userStore = new RedisStorage(client, 'user');
const sessionStore = new RedisStorage(client, 'session');
 
const bot = new builder.TextBot({
  userStore: userStore,
  sessionStore: sessionStore  
})
 
bot.add('/', new builder.CommandDialog().matches('bye', session => {
    session.send('hello')
})
 
bot.listen()

Install

$ npm install --save botbuilder-redis redis

License

MIT License

Package Sidebar

Install

npm i botbuilder-redis

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • vvatanabe