This commit is contained in:
Christopher Cookman 2024-03-24 03:56:31 -06:00
parent df667e8580
commit 38f054ef71
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -1165,14 +1165,9 @@ dcClient.on('interactionCreate', async interaction => {
outputStream = ""
stream.on("data", (data) => {
outputStream += `${data}\n`
if(outputTimeout) clearTimeout(outputTimeout);
outputTimeout = setTimeout(() => {
interaction.editReply(`\`\`\`ansi\n${outputStream}\`\`\``);
}, 150);
})
stream.on('exit', (code, signal) => {
interaction.editReply(`Ran command \`${cmd}\``);
interaction.editReply(`Ran command ${cmd}:\n\`\`\`ansi\n${outputStream}\n\`\`\``);
sendLog(`${colors.green("[INFO]")} Ran command ${cmd}`);
});
});