question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hubot Brain set/get Does Not Persist Between Scripts

See original GitHub issue

I have a script that sets a userId robot.brain.set('userId', body.data.userId) to the brain on start up but when I try to access that value from a different script robot.brain.get('userId') I receive a null. I can only get the value within the same script.

Is this the intended behavior? I’m looking for a way to set a key/value of userId and auth token that I can access from other scripts for persistence.

In my external-scripts.json file, hubot-redis-brain exists.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
ngeneriocommented, Apr 19, 2016

@richardwlu At start up when hubot-redis-brain is loaded, it sets new information in the brain’s data overriding or clearing anything you set in the brain. Check out #619 and #963.

cc @technicalpickles

0reactions
stale[bot]commented, May 30, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

setget in tool script throws error - Godot Engine - Q&A
The problem is that when the scene is instanced (e.g. PackedScene::instance is called, which happens for all scenes before they are displayed), it...
Read more >
How to Create a Custom Hubot on Heroku - Tyler Buchea
You'll be able to configure a custom name for your Hubot after you run the yo hubot command. There are many useful Hubot...
Read more >
npmsearchfullcat_npm143.txt - GitHub
=bigeasy 2014-01-17 0.0.5 btree leveldb levelup binary mvcc database json b-tree concurrent persistence advanced-pool Advanced resource pool for Node.
Read more >
hubot shell not loading scripts and packages - Stack Overflow
Update 2: I realized part of my problem was that in the bin/hubot file explicitly has my bot name as eve, while I...
Read more >
Tools for Pentesters. 2016 Compilation
And Acunetix OVS does not stop at web vulnerabilities. ... The agent can be launched as a python script, but it is ultimately...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found