Redis adapter for Microsoft BotBuilder.
'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()
$ npm install --save botbuilder-redis redis
MIT License