hubot-redis-brain | A hubot script to persist hubot 's brain using redis | Learning library
kandi X-RAY | hubot-redis-brain Summary
kandi X-RAY | hubot-redis-brain Summary
A hubot script to persist hubot's brain using redis
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- gets the redis environment
hubot-redis-brain Key Features
hubot-redis-brain Examples and Code Snippets
Community Discussions
Trending Discussions on hubot-redis-brain
QUESTION
I'm currently trying to build a slack bot using Hubot and I need to persist some things on Redis. I'm using the following script from https://github.com/hubotio/hubot-redis-brain
...ANSWER
Answered 2019-Feb-27 at 20:52Seems like you can have no code changes but set the environment variable REDIS_URL
to the URL for your Redis instance.
QUESTION
If I initialize a property in robot.brain
in the body of my script's module.exports
, it doesn't work (see code below). If I initialize it during response, it works. Is my hypothesis that it gets overwritten by hubot-redis-brain correct? How do I fix it in a nice way?
ANSWER
Answered 2017-Oct-25 at 07:24hubot-redis-brain
makes robot.brain
emit a "connected"
event when the data is loaded from redis or initialized, see [https://github.com/hubotio/hubot-redis-brain/blob/487dd4a9641f35ffb5ae18fb5e1b09e8114c4b70/src/redis-brain.js#L55](see lines 55 and 59). So this is how it should be fixed:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hubot-redis-brain
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page