Skip to content

Commit

Permalink
improved db finding for standalone npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
Luciano Mammino committed Sep 3, 2015
1 parent 6827ad2 commit 0d856a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/norrisbot.js
Expand Up @@ -20,7 +20,7 @@ var Bot = require('slackbots');
var NorrisBot = function Constructor(settings) {
this.settings = settings;
this.settings.name = this.settings.name || 'norrisbot';
this.dbPath = settings.dbPath || path.resolve(process.cwd(), 'data', 'norrisbot.db');
this.dbPath = settings.dbPath || path.resolve(__dirname, '..', 'data', 'norrisbot.db');

this.user = null;
this.db = null;
Expand Down

0 comments on commit 0d856a9

Please sign in to comment.