Initial Emmelia merge

This commit is contained in:
Logan Cusano
2023-05-06 14:56:51 -04:00
parent 6e8af5dbcc
commit f3a4f25f85
44 changed files with 5530 additions and 1115 deletions

View File

@@ -0,0 +1,34 @@
const { SlashCommandBuilder } = require('discord.js');
const { DebugBuilder } = require("../utilities/debugBuilder");
const log = new DebugBuilder("server", "pricing");
const { EmmeliaEmbedBuilder } = require("../libUtils");
module.exports = {
data: new SlashCommandBuilder()
.setName('pricing')
.setDescription('Replies with the pricing for tokens'),
example: "pricing",
isPrivileged: false,
requiresTokens: false,
defaultTokenUsage: 0,
deferInitialReply: false,
async execute(interaction) {
try{
const pricingEmbed = new EmmeliaEmbedBuilder()
.setColor(0x0099FF)
.setTitle(`Emmelia's Pricing`)
.addFields(
{ name: 'Tokens', value: `Tokens are a shared currency that is used between all AI models. Each model is charges tokens differently however, so do keep this in mind. $1 = 45,000 tokens` },
{ name: 'Text (ChatGPT)', value: `Tokens are used in the prompt and in the response of a generation. The max tokens will not be breached by the combined prompt and response. Keep this is mind when using text generations. Each syllable is one token. This section is 50 tokens.` },
{ name: 'Images (DALL-E)', value: `Tokens are used for each generation, variation, and upscale. The image size also affects the amount of tokens used: 256px = 800 tokens, 512px = 900 tokens, 1024px = 1000 tokens` }
)
await interaction.reply({ embeds: [pricingEmbed] });
}catch(err){
log.ERROR(err)
//await interaction.reply(err.toString());
}
}
};