https://github.com/vvatanabe/botbuilder-redis
https://github.com/vvatanabe/botbuilder-redis
bot redis
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/vvatanabe/botbuilder-redis
- Owner: vvatanabe
- Created: 2016-05-28T06:44:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-09T03:37:21.000Z (almost 10 years ago)
- Last Synced: 2025-03-08T16:34:22.399Z (over 1 year ago)
- Topics: bot, redis
- Language: TypeScript
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# botbuilder-redis [](https://travis-ci.org/vvatanabe/botbuilder-redis) [](https://coveralls.io/github/vvatanabe/botbuilder-redis?branch=master) [](https://badge.fury.io/js/botbuilder-redis)
Redis adapter for Microsoft BotBuilder.
## Usage
``` javascript
'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
``` sh
$ npm install --save botbuilder-redis redis
```
## License
MIT License
* http://www.opensource.org/licenses/mit-license.php