Create your own OpenAI discord bot.
git clone https://github.com/MannuVilasara/chat-gpt.git
> clone this repo open it in vs-code.
To run this project, you will need to create .env file and add the following environment variables to your .env file
OPENAI_API_KEY=
"Your OpenAI api key"
DISCORD_BOT_TOKEN=
"Your Discord Bot Token"
DISCORD_CLIENT_ID=
"Client Id of that bot"
ALLOWED_SERVER_IDS=
"Server id for which you are making this bot"
SERVER_TO_MODERATION_CHANNEL=1:1
Keep it as it is
To Start the bot
python -m src.main
Now you can use this bot.
Thanks for using this code, don't forget to star this repo.