fix/file not downloaded

This commit is contained in:
SowinskiBraeden committed 2023-09-10 19:32:27 -07:00
1 parent 8df16eff09
commit 7e98ed2e49
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -224,10 +224,10 @@ module.exports = {
const posted = await PostServerSettings(client, "config", "disableBaseDamage", pref);
if (posted == 1) return 1;
const remoteDir = '/games/ni8434545_1/ftproot/dayzxb_missions/dayzOffline.chernarusplus';
const remoteDir = `/games/${client.config.Nitrado.ServerID}/ftproot/dayzxb_missions/dayzOffline.chernarusplus`;
const remoteFilename = 'cfggameplay.json';
const jsonDir = path.join(__dirname, '.', 'logs', remoteFilename);
const jsonDir = `../logs/${remoteFilename}`;
await module.exports.DownloadNitradoFile(client, `${remoteDir}/${remoteFilename}`, jsonDir);
let gameplay = JSON.parse(fs.readFileSync(jsonDir));