Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.81 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.81 KB

Roobot (deprecated)

This is was Gratipay's version of GitHub's Campfire bot, hubot. He's pretty cool.

Roobot was powered off on 18th October 2016. gratipay/inside.gratipay.com#834

Requirements

  • install NPM
  • install Redis, hubot's brain. (Installing via homebrew is recommended on OSX.)

Testing

To test roobot locally:

git clone [email protected]:gratipay/roobot.git && cd roobot
npm install
bin/hubot -n roobot

Contributing

roobot is composed of a core (hubot) and a set of scripts. The configuration is done through environment variables.

Scripts come for three sources:

  • the hubot-scripts.json file, it adds scripts from the official hubot-scripts repository
  • the external-scripts.json file, it adds scripts from standalone repositories (e.g. hubot-seen)
  • the scripts directories, it contains our own custom scripts

Take a look at the Scripting Guide if you want to write a new script.

Deploying

git remote add heroku [email protected]:roobot-test.git
git remote add heroku-prod [email protected]:roobot-prod.git

# Deploy to the test channel
git push heroku

# Confirm the bot is working in #gratipay-test
# Take a look at the logs if there is a problem:
# heroku -a roobot-test logs -t

# If all is well deploy to the prod channel (i.e. #gratipay)
git push heroku-prod

Restarting the bot

You may want to get comfortable with heroku logs and heroku restart if you're having issues.