summaryrefslogtreecommitdiff
path: root/includes/external
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-03 22:22:48 +0200
committerRaindropsSys <contact@minteck.org>2023-04-03 22:22:48 +0200
commit704e1c22efe6056b0fc2f59b2766f47e1c8d71cc (patch)
tree25c3c3980c115e7bcbc60e62f4b3d3f7fc184c71 /includes/external
parentbbf20f987bb6a7561be3d98518ddaa41b71eaf67 (diff)
downloadpluralconnect-704e1c22efe6056b0fc2f59b2766f47e1c8d71cc.tar.gz
pluralconnect-704e1c22efe6056b0fc2f59b2766f47e1c8d71cc.tar.bz2
pluralconnect-704e1c22efe6056b0fc2f59b2766f47e1c8d71cc.zip
Updated 19 files and added 12 files (automated)
Diffstat (limited to 'includes/external')
-rw-r--r--includes/external/chvfs/index.js3
-rw-r--r--includes/external/discord/cache.json2
-rw-r--r--includes/external/discord/node_modules/.package-lock.json13
-rw-r--r--includes/external/discord/start.sh3
4 files changed, 7 insertions, 14 deletions
diff --git a/includes/external/chvfs/index.js b/includes/external/chvfs/index.js
index 0dfd958..fda57bf 100644
--- a/includes/external/chvfs/index.js
+++ b/includes/external/chvfs/index.js
@@ -5,6 +5,7 @@ const watch = require('node-watch');
const child_process = require('child_process');
const fs = require('fs').promises;
const fss = require('fs');
+const path = require('path');
process.on('uncaughtException', (e) => {
console.error(e);
@@ -63,6 +64,7 @@ setInterval(async () => {
await fs.unlink("/opt/peh_save/" + item.file.substring(5));
} else {
console.log("Copying " + item.file);
+ try { await fs.mkdir(path.dirname(item.file), { recursive: true }); } catch (e) {}
await fs.copyFile(item.file, "/opt/peh_save/" + item.file.substring(5));
}
} catch (e) {
@@ -83,6 +85,7 @@ process.on('exit', () => {
fss.unlinkSync("/opt/peh_save/" + item.file.substring(5));
} else {
console.log("Copying " + item.file);
+ try { fss.mkdirSync(path.dirname(item.file), { recursive: true }); } catch (e) {}
fss.copyFileSync(item.file, "/opt/peh_save/" + item.file.substring(5));
}
} catch (e) {
diff --git a/includes/external/discord/cache.json b/includes/external/discord/cache.json
index fa1f1d5..22c9216 100644
--- a/includes/external/discord/cache.json
+++ b/includes/external/discord/cache.json
@@ -1 +1 @@
-{"channels":[null,null,null,null,null],"activity":{"1087010851602571425":1679234722655,"1087015883085463573":1679235182306,"1087017727539023973":1679235904280,"1087043159206412338":1679241685440}} \ No newline at end of file
+{"channels":[null,null,null,null,null,null,null,null,null,null],"activity":{"1087010851602571425":1679234722655,"1087015883085463573":1679235182306,"1087017727539023973":1679235904280,"1087043159206412338":1679241685440,"1087085298762121299":1679251823254,"1087174430561677382":1679277206837,"1088999061585150014":1679713147799,"1089707298554916954":1679882765101,"1091519240491782194":1680313791225}} \ No newline at end of file
diff --git a/includes/external/discord/node_modules/.package-lock.json b/includes/external/discord/node_modules/.package-lock.json
index 59e744b..a8e405c 100644
--- a/includes/external/discord/node_modules/.package-lock.json
+++ b/includes/external/discord/node_modules/.package-lock.json
@@ -274,19 +274,6 @@
"node": ">=8"
}
},
- "node_modules/fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "hasInstallScript": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
"node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
diff --git a/includes/external/discord/start.sh b/includes/external/discord/start.sh
new file mode 100644
index 0000000..b9c9404
--- /dev/null
+++ b/includes/external/discord/start.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+node register.js
+node bot.js \ No newline at end of file