mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +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",
|
cwd: "/CCash/CCash/build",
|
||||||
};
|
};
|
||||||
let arguments = message.content.split("!ccash ");
|
let arguments = message.content.split("!ccash ");
|
||||||
console.log(arguments);
|
const ccash = spawn(`./bank ${arguments[1]}`, [``], options);
|
||||||
const ccash = spawn(`./bank ${arguments[0]}`, [``], options);
|
|
||||||
ccash.stdout.on("data", (data) => {
|
ccash.stdout.on("data", (data) => {
|
||||||
try {
|
try {
|
||||||
channel.send(`${data}`);
|
channel.send(`${data}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue