
var configfile = process.env.VOICER_CONFIGFILE || './config';
var fileExists = require('file-exists');

if (fileExists(configfile + '.js')) {
  var config = require(configfile);
  var Voicer = require('./index');

  var voicer = new Voicer(config);
  voicer.start();
} else {
  console.log('no configfile');
}
@@ -1,12 +1,28 @@
+#!/usr/bin/node%0A
 %0Avar configf

add path to app.js