From a016bafa7dd9d3726d3536704392950d629b329a Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Sat, 12 Oct 2024 00:21:26 +0200 Subject: [PATCH] revamp ai response --- src/commands/ai/prompt.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/commands/ai/prompt.js b/src/commands/ai/prompt.js index 19f6183..73386ba 100644 --- a/src/commands/ai/prompt.js +++ b/src/commands/ai/prompt.js @@ -1,4 +1,4 @@ -const { InteractionContextType, ApplicationIntegrationType, SlashCommandBuilder, EmbedBuilder } = require("discord.js"); +const { InteractionContextType, ApplicationIntegrationType, SlashCommandBuilder } = require("discord.js"); const data = new SlashCommandBuilder() .setName("prompt") @@ -49,19 +49,6 @@ module.exports = { "model": interaction.options.getString("model") || interaction.defaultModel })).choices[0].message.content; - const embed = new EmbedBuilder() - .setFooter({ - text: "This content was generated by a LLM and may be incorrect.", - iconURL: "https://cdn.discordapp.com/emojis/956557709937889380.webp?size=96&quality=lossless" - }) - .setFields([{ - name: "Prompt", - value: interaction.options.getString("prompt") - }, { - name: "Response", - value: response.slice(0, (response.length > 1024 ? 1021 : 1024)) + (response.length > 1024 ? "..." : "") - }]) - - await interaction.followUp({ embeds: [embed] }); + await interaction.followUp(response + "\n\n-#This content was generated by a LLM and may be incorrect"); }, }; \ No newline at end of file