Uhh
This commit is contained in:
parent
df667e8580
commit
38f054ef71
7
index.js
7
index.js
|
@ -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}`);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue