From da97ef381b8cc9b6fdf553b7847473b7d5d0d0a9 Mon Sep 17 00:00:00 2001 From: Taken Date: Wed, 29 Mar 2023 14:45:18 +0200 Subject: [PATCH] . --- commands/config.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/commands/config.js b/commands/config.js index cf22b1b..c1718b4 100644 --- a/commands/config.js +++ b/commands/config.js @@ -54,7 +54,19 @@ module.exports = { const embedColor = Number(color.replace("#", "0x")); if (subcommand === 'reload') { - await interaction.reply({ content: "In development.", ephemeral: true }); + + await interaction.deferReply({ ephemeral: true }) + + const { spawn } = require('child_process'); + const child = spawn('ls', ); + child.stdout.on('data', (chunk) => { + console.log(`child stdout:\n${chunk}`); + }); + child.on('close', (code) => { + console.log(`child process exited with code ${code}`); + }); + + await interaction.editReply({ content: "In development.", ephemeral: true }); } if (subcommand === 'sendguildapplication') {