1 import Promise
from 'bluebird';
3 import Config
from '../config';
4 import db
from '../database';
5 import { DatabaseStore
} from './dbstore';
7 /* eslint no-console: off */
9 Config
.load('config.yaml');
11 const dbStore
= new DatabaseStore();
13 Promise
.delay(1000).then(() => {
14 return dbStore
.load(process
.argv
[2]);
16 console
.log(JSON
.stringify(data
, null, 4));
19 console
.error(`Error retrieving channel data: ${err.stack}`);