Skip to content

Commit

Permalink
Merge pull request #134 from flacial/main
Browse files Browse the repository at this point in the history
Log the /ask command error to the console
  • Loading branch information
flacial authored Nov 13, 2023
2 parents 75e3a15 + a08c124 commit e0a81dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Bot/commands/commandsReplies.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down Expand Up @@ -82,6 +82,8 @@ export const assistantAskReply = async (
});
return;
} catch (e) {
console.error(e);

await interaction.editReply({
content: "We could not reach the assistant.",
});
Expand Down

0 comments on commit e0a81dd

Please sign in to comment.