This commit is contained in:
Expand-sys 2021-10-20 20:13:26 +11:00
parent 15ce5e75c3
commit 65604e7c7d

View file

@ -20,8 +20,7 @@ function spawnMC(channel, message) {
cwd: "/CCash/CCash/build",
};
let arguments = message.content.split("!ccash ");
console.log(arguments);
const ccash = spawn(`./bank ${arguments[0]}`, [``], options);
const ccash = spawn(`./bank ${arguments[1]}`, [``], options);
ccash.stdout.on("data", (data) => {
try {
channel.send(`${data}`);