bot.exec: remove excessive newlines

This commit is contained in:
Cynthia Foxwell 2021-07-23 17:17:07 -06:00
parent ff38c73894
commit e9ec555a96
1 changed files with 2 additions and 2 deletions

View File

@ -122,10 +122,10 @@ exec.callback = async function (msg, line) {
const proc = spawn(line);
let out = `Spawned ${proc.pid}: \`${line}'\n`;
proc.stdout.on("data", (data) => {
out += data + "\n";
out += data;
});
proc.stderr.on("data", (data) => {
out += data + "\n";
out += data;
});
proc.on("close", async (code) => {