This commit is contained in:
Lukian 2023-07-06 19:56:53 +02:00
parent 7eb77d9e79
commit 4dcd4c9072
6 changed files with 26 additions and 29 deletions

View file

@ -12,11 +12,11 @@ async function quickGptrequest(interaction, client) {
addToLogs(err);
});
if (quota >= 200000) {
if (quota.quota >= 200000) {
const embed = new discord.EmbedBuilder()
.setColor(0xFABBDE)
.setAuthor({ name: "Quota exceeded", iconURL: client.user.displayAvatarURL() })
.setDescription("You have a quota of " + quota + " tokens, please wait until reset (every months)")
.setDescription("You have a quota of " + quota.quota + " tokens, please wait until reset (every months)")
.setFooter({ text: "Powered by OpenAI https://www.openai.com/", iconURL: "https://seeklogo.com/images/O/open-ai-logo-8B9BFEDC26-seeklogo.com.png" });
interaction.editReply({ embeds: [embed] });