From 8e8a446abf17de4ec96dcf4fa97e10bdf0e64f68 Mon Sep 17 00:00:00 2001 From: Taken Date: Wed, 29 Mar 2023 14:51:19 +0200 Subject: [PATCH] wd --- commands/config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/commands/config.js b/commands/config.js index c1718b4..532499b 100644 --- a/commands/config.js +++ b/commands/config.js @@ -1,4 +1,5 @@ const { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, EmbedBuilder, WebhookClient } = require('discord.js'); +const { title } = require('process'); const { color } = require('../config/options.json'); module.exports = { @@ -61,12 +62,19 @@ module.exports = { const child = spawn('ls', ); child.stdout.on('data', (chunk) => { console.log(`child stdout:\n${chunk}`); + var output = chunk.toString(); }); child.on('close', (code) => { console.log(`child process exited with code ${code}`); }); - await interaction.editReply({ content: "In development.", ephemeral: true }); + await interaction.editReply({ + embeds: [{ + title: 'Reloaded', + description: chunk, + }], + ephemeral: true + }); } if (subcommand === 'sendguildapplication') {