howdyai / botkit-storage-redis Goto Github PK
View Code? Open in Web Editor NEWRedis storage module for Botkit
License: MIT License
Redis storage module for Botkit
License: MIT License
Move change test
folder to tests
for consistency with other storage libs.
Move index.js
inside src.
Add contributing.md
from botkit master.
Add index.js
to main folder with module.exports = require('src/index.js')
Oh, and add some usage to the readme
Now that we have unit tests, we should consider adding Travis-CI integration. That will ensure pull requests pass linting and unit tests.
By default, BotKit implements delete
on local storage.users object https://github.com/howdyai/botkit/blob/master/lib/storage/simple_storage.js#L73
Botkit-starage-redis has a different implementation, https://github.com/howdyai/botkit-storage-redis/blob/master/src/index.js#L51. Instead of delete
we have remove
.
A proposal is to rename the remove
function to delete
function. But, in your case, it would make more sense to support both remove
and delete
for backward compatibility.
So it would be nice to keep an API consistent with the BotKit.
This repository has had no activity in more than [x amount of time]. Long periods of inactivity present security and code hygiene risks. Archiving will not prevent users from viewing or forking the code. A banner will appear on the repository alerting users that the repository is archived.
Please see https://aka.ms/sunsetting-faq to learn more about this process.
✍️
❗**If this repository is still actively maintained, please simply close this issue. Closing an issue on a repository is considered activity and the repository will not be archived.🔒
If you take no action, this repository is still inactive 30 days from today it will be automatically archived..
I've tried to use this with Botkit 4, but it fails with error like this:
Experienced an error inside the turn handler TypeError: this.storage.read is not a function
at Promise.resolve.then (/Users/home/swirl/swirl-app/node_modules/botbuilder-core/src/botState.ts:87:37)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:43349) UnhandledPromiseRejectionWarning: TypeError: this.storage.read is not a function
at Promise.resolve.then (/Users/home/swirl/swirl-app/node_modules/botbuilder-core/src/botState.ts:87:37)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
is this to be expected? Any plans to update this library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.