This is a basic bot for Discord. Given a token for discord and an API key for OpenAI, you can access all its functions.
Unless it reads a few command keywords, it will respond to you like ChatGPT.
Otherwise, it will react to those commands.
You will need to install:
- discord
- openai
- gtts
- youtube_search
- yt_dlp
You also have to install FFmpeg. Not by using pip as with Python libraries.
You have to download it from here. Then, put it in your C:\ folder and add the bin\ folder inside to your PATH environment variable.
You will also need to replace the spots in tokens.env with your own generated tokens.
After doing all of the above, invite the bot to your server, run main.py and your bot is all setup.