Github has just released Hubot to the public (Say Hello to Hubot).
I have installed it on my MBP running Max OS X 10.7.2
Instructions:
- Download and install Node.js & npm – sites.google.com/site/nodejsmacosx
- Download and install Redis – redis.io/download
I just used homebrew for this ‘brew install redis’. If you don’t have it, just manually install Redis by following their instructions.
- Set Redis to run on startup. Run the following commands from terminal.
mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/redis/2.2.12/io.redis.redis-server.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist
- Download Hubot – github.com/github/hubot/downloads
- Run ‘npm install’ from terminal
- Run hubot using ‘bin/hubot’ from the downloaded hubot directory.
Example usage:
Result in browser:
Well that was interesting. I got a hubot connected to my irc server, then into my campfire server.
Nice tutorial.
Thanks 🙂 Glad it helped out!
You can also run Hubot as a launchctl service (it will handle restarting for you, logging to /var/log/system.log, etc.)
Save the following (change PATH, etc. accordingly) to
~/LaunchAgents/com.my.hubot.plist
and load withlaunchctl
as described above and you’re all set!(
go.sh
is just a simple shell script to setup some Hubot-specific environment vars and run./bin/hubot
)KeepAlive
Label
com.my.hubot
ProgramArguments
/bin/sh
-c
export PATH=/usr/local/bin:/usr/local/Cellar/ruby/2.1.0/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin; /Users/user/workspace/hubot/go.sh
RunAtLoad
WorkingDirectory
/Users/user/workspace/hubot
-Nate
Oops, comment ate the XML tags.
Try: https://gist.github.com/nheinric/9107715
Thanks for the tip man!!
I’m googling for help getting Hubot installed on my Mac, and your post is determined to stay at the top of the results. It’s a long shot, but I thought it can’t hurt to ask.
Have you had any experiencing installing Hubot recently? I’ve tried on both Mac and Windows. Following your steps, I get successfully to the execution of
bin/hubot
, at which I am greeted with:WARNING The HUBOT_AUTH_ADMIN environment variable not set
INFO Data for brain retrieved from Redis
followed by nothing. No further content, and the Hubot is unresponsive. I get identical behavior on Mac and Windows–and most variations of googling the errors resolve to GitHub commits.
If you know any resources for starting/troubleshooting a Hubot install in 2014, let me know.
(facepalm) Nevermind. As usual, as soon as I ask a question out loud, the solution becomes obvious. Hubot was running just fine, I just wasn’t prefixing subsequent commands with
hubot
. D’oh!