new line and codeblock

This commit is contained in:
loicbersier 2019-12-17 20:26:44 +01:00
parent 520cfd14b8
commit dc1b3af0b7

View file

@ -28,8 +28,8 @@ class execCommand extends Command {
const { stdout, stderr } = await exec(args.exec).catch(err => { const { stdout, stderr } = await exec(args.exec).catch(err => {
return message.channel.send(`Oh no, an error has occured\n${err}`); return message.channel.send(`Oh no, an error has occured\n${err}`);
}); });
message.channel.send(`stdout: ${stdout}`, { split: true }); message.channel.send(`stdout: \n\`\`\`${stdout}\`\`\``, { split: true });
message.channel.send(`stderr: ${stderr}`, { split: true }); message.channel.send(`stderr: \n\`\`\`${stderr}\`\`\``, { split: true });
} }
return update(); return update();
} }