From b94fa6ba0b26f933a6ff20ae9e1a494087a31822 Mon Sep 17 00:00:00 2001 From: Marcin Czop Date: Tue, 19 Nov 2024 22:55:39 +0100 Subject: [PATCH] Add loading for LLM command too --- src/commands/other/llm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/other/llm.ts b/src/commands/other/llm.ts index c1997db..439b169 100644 --- a/src/commands/other/llm.ts +++ b/src/commands/other/llm.ts @@ -3,6 +3,7 @@ import { EmbedBuilder } from "discord.js"; import { RunFunction } from "../../interfaces/commands"; export const run: RunFunction = async (client, message, args) => { + const loadingMessage = await message.reply(""); const prompt = args.join(" "); if (!prompt) { message.channel.send("Podaj tekst do przetworzenia."); @@ -34,7 +35,7 @@ export const run: RunFunction = async (client, message, args) => { iconURL: message.author.displayAvatarURL(), }); - message.channel.send({ embeds: [embed] }); + loadingMessage.edit({ embeds: [embed], content: "" }); }; export const name = "llm";