Closed nightmarefoxy397 closed 1 year ago
It seems that OpenAI is having some problems with API keys as they are very limited.
CorwinDev offers an alternative which is their own AI (https://coreware.nl/) and here I will show you how to use it!
Go to /Discord-bot/src/events/message/messageCreate.js and remove from line 231 - 257
Also delete line 259, 284, 285. And that's it! You are now running the Chat Bot using CorwinDev AI.
Also delete lines 234 and 260 because we will no longer be using the .env to obtain the OpenAI key.
After making the above changes the code should look like this:
If you want you can go to Discord-Bot/.env and delete the OpenAI section because we will no longer be using it, however this is optional.
(Remove console.log(json); but in your case it is not necessary, I just did it for convenience)
You just don't set the OPENAI .env variable and you don't have to do this stuff
Updated the post. :D
It seems that OpenAI is having some problems with API keys as they are very limited.
CorwinDev offers an alternative which is their own AI (https://coreware.nl/) and here I will show you how to use it!
Go to /Discord-bot/src/events/message/messageCreate.js and remove from line 231 - 257
Also delete line 259, 284, 285. And that's it! You are now running the Chat Bot using CorwinDev AI.
Also delete lines 234 and 260 because we will no longer be using the .env to obtain the OpenAI key.
After making the above changes the code should look like this:
If you want you can go to Discord-Bot/.env and delete the OpenAI section because we will no longer be using it, however this is optional.
(Remove console.log(json); but in your case it is not necessary, I just did it for convenience)