fix/file not downloaded
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "10.0.3",
|
"version": "10.0.4",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
+2
-2
@@ -224,10 +224,10 @@ module.exports = {
|
|||||||
const posted = await PostServerSettings(client, "config", "disableBaseDamage", pref);
|
const posted = await PostServerSettings(client, "config", "disableBaseDamage", pref);
|
||||||
if (posted == 1) return 1;
|
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 remoteFilename = 'cfggameplay.json';
|
||||||
|
|
||||||
const jsonDir = path.join(__dirname, '.', 'logs', remoteFilename);
|
const jsonDir = `../logs/${remoteFilename}`;
|
||||||
await module.exports.DownloadNitradoFile(client, `${remoteDir}/${remoteFilename}`, jsonDir);
|
await module.exports.DownloadNitradoFile(client, `${remoteDir}/${remoteFilename}`, jsonDir);
|
||||||
|
|
||||||
let gameplay = JSON.parse(fs.readFileSync(jsonDir));
|
let gameplay = JSON.parse(fs.readFileSync(jsonDir));
|
||||||
|
|||||||
Reference in new issue
Block a user