diff --git a/src/client.ts b/src/client.ts index 6d2eb02..5336b8a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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); diff --git a/src/commands/other/tti.ts b/src/commands/other/tti.ts index 63ae71e..0009957 100644 --- a/src/commands/other/tti.ts +++ b/src/commands/other/tti.ts @@ -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(""); 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";