This commit is contained in:
Christopher Cookman 2024-03-23 17:27:46 -06:00
parent 89f032b7ca
commit 58b431b757
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -5,6 +5,7 @@ const colors = require("colors");
const embeds = require("./embeds.json") const embeds = require("./embeds.json")
const axios = require('axios'); const axios = require('axios');
const ping = require("ping") const ping = require("ping")
var commandsBase = require("./commands.json")
const ssh2 = require('ssh2') const ssh2 = require('ssh2')
const sshConn = new ssh2.Client(); const sshConn = new ssh2.Client();
// find first file in .ssh local to the script // find first file in .ssh local to the script
@ -519,9 +520,9 @@ dcClient.on('ready', async () => {
] ]
}; };
var commands = await require("./commands.json") // make a non reference copy of the commands object
var commands = JSON.parse(JSON.stringify(commandsBase));
commands.push(pageCommand) // This is a test, i have *no* idea if this'll work commands.push(pageCommand);
(async () => { (async () => {