Merge pull request 'read me pelase' (#11) from dev into mistress
Reviewed-on: https://git.incest.world/sisterkissers/discord-bot/pulls/11
This commit is contained in:
commit
307410e1d2
1 changed files with 2 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
||||||
const { InteractionContextType, ApplicationIntegrationType, SlashCommandBuilder, EmbedBuilder } = require("discord.js");
|
const { InteractionContextType, ApplicationIntegrationType, SlashCommandBuilder } = require("discord.js");
|
||||||
|
|
||||||
const data = new SlashCommandBuilder()
|
const data = new SlashCommandBuilder()
|
||||||
.setName("prompt")
|
.setName("prompt")
|
||||||
|
@ -49,19 +49,6 @@ module.exports = {
|
||||||
"model": interaction.options.getString("model") || interaction.defaultModel
|
"model": interaction.options.getString("model") || interaction.defaultModel
|
||||||
})).choices[0].message.content;
|
})).choices[0].message.content;
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
await interaction.followUp(response + "\n\n-# This content was generated by a LLM and may be incorrect");
|
||||||
.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] });
|
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Reference in a new issue