Swarmbot hangs out in Slack and creates Project Coins on a trusty blockchain. It helps you to distribute profit and tracks your fair share of projects you work on. Swarmbot helps you run a Dynamic Equity Organization.
This project is an initial prototype and not currently in development or actively supported. We are currently rewriting from the ground up in a different technology stack here: https://github.com/CoMakery/comakery-app.
We are planning to license it as a Dynamic Equity Organization. The structure is being legally reviewed for use in Swarmbot and on your projects.
To learn more when we release it, sign up for our mailing list over at www.swarmbot.io
Project setup is pretty easy, make sure you have something close to these versions from Homebrew (make sure to run brew update
first
node -v
=> v5.3.0
npm -v
=> 3.3.12
redis-server -v
=> Redis server v=3.0.7 ...
The Swarmbot is based on Hubot, and is configured specifically for Slack.
npm install
You can start the bot locally by running:
npm run devbot
Start a redis server
redis-server
OR if you have foreman installed gem install foreman
, you can start everything in one terminal
foreman start -f Procfile.dev
This will also load environment variables from your local .env
file.
(Don't do this if you have a redis server running already!)
You can run tests with:
npm test
heroku create
heroku addons:create redistogo:nano # Optional. Colu caches to Redis if available.
heroku addons:create airbrake:free_heroku # error reporting, optional
git push heroku master
heroku ps:type hobby # will be available 24/7, but costs $
Configuration is done through environment variables, described below:
HUBOT_SLACK_TOKEN # your slack token, from Slack -> Integrations -> Hubot
# register for a Colu account at https://dashboard.colu.co/register
COLU_PRIVATE_SEED_WIF # WIF = Wallet Info Format
COLU_NETWORK # testnet or mainnet
COLU_MAINNET_APIKEY # if on mainnet
FIREBASE_URL # visit https://www.firebase.com/ to create DB
FIREBASE_SECRET # found in the "Secrets" tab of your Firebase instance
KEENIO_PROJECT_ID # keen.io analytics, optional
KEENIO_API_TOKEN #
AIRBRAKE_API_KEY # Airbrake error reporting, optional
APP_NAME # friendly app name for keen.io, airbrake, etc
NODE_ENV=production # recommended settings for Node on Heroku
NODE_MODULES_CACHE=false #
NPM_CONFIG_PRODUCTION=true #
DEBUG=app # for verbose debugging info in logs
# Optionally, you may send a percentage of all awards back to your organization:
HOST_NAME # Friendly name
HOST_PERCENTAGE # Percentage of awards to send to host (eg 3.5)
HOST_BTC_ADDRESS # Bitcoin address of host
Swarmbot is being developed under the experimental Peer Production Royalty Token License.