diff --git a/index.js b/index.js index b734ef3..4670aa4 100755 --- a/index.js +++ b/index.js @@ -1,4 +1,10 @@ const fs = require('fs'); + +//if db folder does not exist, ensure to create it before loading anything else +if (!fs.existsSync('./db')) { + fs.mkdirSync('./db'); +} + const path = './lib/provider'; const provider = fs.readdirSync(path).filter((file) => file.endsWith('.js')); const config = require('./conf/config.json');