diff --git a/src/Bot/commands/commandsReplies.ts b/src/Bot/commands/commandsReplies.ts index 919543e..748d636 100644 --- a/src/Bot/commands/commandsReplies.ts +++ b/src/Bot/commands/commandsReplies.ts @@ -1,7 +1,7 @@ import { ChatInputCommandInteraction } from "discord.js"; import { GraphQLClient } from "graphql-request"; -import { USER_INFO } from "../../graphql"; import { config } from "../../../config"; +import { USER_INFO } from "../../graphql"; import { sendPrompt } from "./externals/gpt"; type UserInfoQuery = { @@ -82,6 +82,8 @@ export const assistantAskReply = async ( }); return; } catch (e) { + console.error(e); + await interaction.editReply({ content: "We could not reach the assistant.", });