hubot-config
A configuration management library for Hubot
Installation
$ npm install --save hubot-config
Usage
parseConfig = require 'hubot-config' config = parseConfig 'hello'# 'hello' is script name ( hubot-hello ) message: 'world' # process.env.HUBOT_HELLO_MESSAGE ? 'world' friendlyMessage: null # process.env.HUBOT_HELLO_FRIENDLY_MESSAGE ? null = robotrespond /hello/ msgsend configmessage robotrespond /hi/ msgsend configfriendlyMessage
License
Author
bouzuya <m@bouzuya.net> (http://bouzuya.net)