mirror of
https://github.com/MrTalon63/lets-go-gambling.git
synced 2026-03-09 09:17:58 +01:00
Add loading for LLM command too
This commit is contained in:
parent
029511e195
commit
b94fa6ba0b
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import { EmbedBuilder } from "discord.js";
|
||||||
import { RunFunction } from "../../interfaces/commands";
|
import { RunFunction } from "../../interfaces/commands";
|
||||||
|
|
||||||
export const run: RunFunction = async (client, message, args) => {
|
export const run: RunFunction = async (client, message, args) => {
|
||||||
|
const loadingMessage = await message.reply("<a:loading_blocks:1308549135951073340>");
|
||||||
const prompt = args.join(" ");
|
const prompt = args.join(" ");
|
||||||
if (!prompt) {
|
if (!prompt) {
|
||||||
message.channel.send("Podaj tekst do przetworzenia.");
|
message.channel.send("Podaj tekst do przetworzenia.");
|
||||||
|
|
@ -34,7 +35,7 @@ export const run: RunFunction = async (client, message, args) => {
|
||||||
iconURL: message.author.displayAvatarURL(),
|
iconURL: message.author.displayAvatarURL(),
|
||||||
});
|
});
|
||||||
|
|
||||||
message.channel.send({ embeds: [embed] });
|
loadingMessage.edit({ embeds: [embed], content: "" });
|
||||||
};
|
};
|
||||||
|
|
||||||
export const name = "llm";
|
export const name = "llm";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue