curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.2/install.sh | bash
nvm install 4
nvm use 4
nvm alias default 4
brew install redis
- Start redis with
redis-server
git clone https://github.com/cfpb/CFPBot.git
cd CFPBot
cp .env.sample .env
- Edit
.env
appropriately.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
source ~/.bashrc
nvm install 5
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo yum -y --enablerepo=remi,remi-test install redis git
sudo chkconfig --add redis
sudo chkconfig --level 345 redis on
sudo service redis start
git clone https://github.com/cfpb/CFPBot.git
cd CFPBot
cp .env.sample .env
- Edit
.env
appropriately.
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.