const fs = require('fs')

module.exports = function (input) {
  return new Promise((resolve, reject) => {
    fs.readFile('./keys', 'utf8', (err, data) => {
      if (err) {
        reject(err); return
      }
      let key = JSON.parse(data)[input]
      resolve(key)
    })
    console.log('LOG:\tRetrieved ' + input + ' key')
  })
}

@@ -18,16 +18,95 @@
 e('fs')%0D
+%0Aconst path = require('path')%0D%0Aconst currentDir = path.resolve(process.cwd());%0D
 %0A%0D%0Amodul
@@ -202,10 +202,22 @@
 ile(
+currentDir + 
 '
-.
 /key

unify key retrieval for cron