commit
This commit is contained in:
parent
7eb77d9e79
commit
4dcd4c9072
6 changed files with 26 additions and 29 deletions
|
@ -12,11 +12,11 @@ async function gptrequest(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] });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue