mirror of
https://github.com/MrTalon63/lets-go-gambling.git
synced 2026-03-09 09:17:58 +01:00
Add loading emoji while waiting for AI response
This commit is contained in:
parent
3a6139d38a
commit
029511e195
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,6 @@ class Bot extends Client {
|
|||
|
||||
this.log.info("Loading commands...");
|
||||
const commandFiles: string[] = await glob(`${__dirname}/commands/**/*{.ts,.js}`);
|
||||
console.log(commandFiles);
|
||||
commandFiles.map(async (fileName: string) => {
|
||||
const filePath = path.resolve(fileName);
|
||||
const file: Command = await import(filePath);
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { EmbedBuilder, AttachmentBuilder } from "discord.js";
|
|||
import { RunFunction } from "../../interfaces/commands";
|
||||
|
||||
export const run: RunFunction = async (client, message, args) => {
|
||||
const loadingMessage = await message.reply("<a:loading_blocks:1308549135951073340>");
|
||||
const prompt = args.join(" ");
|
||||
if (!prompt) {
|
||||
message.channel.send("Podaj tekst do przetworzenia.");
|
||||
|
|
@ -35,7 +36,7 @@ export const run: RunFunction = async (client, message, args) => {
|
|||
iconURL: message.author.displayAvatarURL(),
|
||||
});
|
||||
|
||||
message.channel.send({ embeds: [embed], files: [atta] });
|
||||
loadingMessage.edit({ embeds: [embed], files: [atta], content: "" });
|
||||
};
|
||||
|
||||
export const name = "tti";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue