curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.2/install.sh | bashnvm install 4nvm use 4nvm alias default 4
brew install redis- Start redis with
redis-server
git clone https://github.com/cfpb/CFPBot.gitcd CFPBotcp .env.sample .env- Edit
.envappropriately.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bashsource ~/.bashrcnvm install 5
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmsudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpmsudo yum -y --enablerepo=remi,remi-test install redis gitsudo chkconfig --add redissudo chkconfig --level 345 redis onsudo service redis start
git clone https://github.com/cfpb/CFPBot.gitcd CFPBotcp .env.sample .env- Edit
.envappropriately.
Run npm start to start the bot.
It will not attempt connect to our live chat server unless HUBOT_PRODUCTION is set to true.
Some plugins require environment variables to be set and may not behave as expected.
Try curl -O https://[secret-internal-repo]/.env to pull down CFPB's .env file with all our secrets in it.
You'll see some start up output and a prompt:
[Sat Feb 28 2015 12:38:27 GMT+0000 (GMT)] INFO Using default redis on localhost:6379
CFPBot>
Then you can interact with CFPBot by typing cfpbot help.
cfpbot> cfpbot help
cfpbot animate me <query> - The same thing as `image me`, except adds [snip]
cfpbot help - Displays all of the help commands that cfpbot knows about.
...
Check out Hubot's scripting guide to learn how to write plugins for Hubot.
Feel free to reach out to folks in the FooBar chat room for guidance.