mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 15:42:13 +11:00
fix
This commit is contained in:
parent
15ce5e75c3
commit
65604e7c7d
1 changed files with 1 additions and 2 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue