Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
/ hubot-mind-meld Public archive

Merge the robot's memory of users into single rows.

Notifications You must be signed in to change notification settings

websages/hubot-mind-meld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hubot Mind Meld

Ruby script to collapse Hubot's robot.brain.users into a single object, keyed by username.

Usage

bundle install --path=vendor/bundle
bundle exec ruby mind-meld.json

The current brain is saved in this directory as a timestamped JSON file for safe keeping.

Why?

The hubot-irc adapter at one point had keyed them by first-seen timestamp, but then switched later to using their username. The result is having more than one record with the same name property, breaThis script takes the contents of the Redis (or other) brain as a JSON file and transitions the data into the new expected format.

Note if you are using Slack or some other adapter, this script is likely not a good fit. It purposefully overrides the id parameter as well to match the screen name.

About

Merge the robot's memory of users into single rows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages