#!/usr/bin/env node

const Main = require('./lib/core/main');

let environment = process.env.NODE_ENV || 'production';
if (process.argv.length > 2) {
  if (process.argv[2] === '--testing') {
    environment = 'testing';
  }
}

Main.initialize({
  environment: environment,

  prefix: '`',
  modules: [
    'dump',
    'eval',
    'help',
    'management',
    'math',
    'nicehash',
    'pingpong',
    'queue',
    'status'
  ],

  postgres: {
    host: process.env.POSTGRES_HOST || 'localhost',
    user: process.env.POSTGRES_USER || 'cardinal',
    password: process.env.POSTGRES_PASSWORD || 'cardinal',
    database: process.env.POSTGRES_DATABASE || 'cardinal',
  },

  redisUrl: process.env.REDIS_URL || 'redis://localhost',

  queue: {
    useMpd: false
  },

  settings: {
    nicehashAddress: '1KiMjCRxfUcwydcUo77gqTDh4sQzGVJ3P5',

    mpd: {
      host: 'turret.lab.mbilker.us',
      port: 6600,
      baseDirectory: '/storage/media/mpd'
    }
  }
});

@@ -862,29 +862,17 @@
 t: '
-turret.lab.mbilker.us
+localhost
 ',%0A 
@@ -915,25 +915,13 @@
 : '/
-storage/media/mpd
+music
 '%0A  

remove old info