GoldyChat is a Python-based chatbot designed to interact with users on Discord. Powered by OpenAI's GPT-4, GoldyChat can engage in conversations, answer questions, and perform various tasks based on user inputs.
- Installation and Setup
- Usage
- Code Overview
- Contributing
- Future Plans
- License
- Contact
- Acknowledgments
- Clone this repository to your local machine.
- Install the required Python libraries using pip:
pip install -r requirements.txt
- Set up your OpenAI API key and Discord bot token in a
.env
file in the root directory of the project. The file should look like this:OPENAI_API_KEY=your_openai_api_key DISCORD_BOT_TOKEN=your_discord_bot_token
- Run the bot using Python:
python Bot.py
To start the bot, simply run the Bot.py
file. Once the bot is running, you can invite it to your Discord server and interact with it using various commands. For example, you can ask the bot questions, request it to perform tasks, or just engage in casual conversation.
Bot.py
: The main file of the chatbot. It listens for messages on Discord and responds to them using the OpenAI GPT-3 model.OpenAI.py
: Contains the functionopenai_query
, which generates responses from the GPT-4 model.config.py
: Loads environment variables from a.env
file. These variables include the bot token and API keys.prompts.py
: Contains a variety of prompts and instructions for the chatbot, guiding its behavior in different situations.
Contributions are welcome! To contribute:
- Fork this repository.
- Create a new branch for your changes.
- Make your changes in your branch.
- Submit a pull request.
Please adhere to this project's coding standards and conventions. If you're not sure about something, feel free to ask!
We're always looking to improve GoldyChat and add new features. Some of our plans for the future include:
- Improved conversation handling
- More advanced tasks and commands
- Integration with other platforms
This project is licensed under the MIT License.
If you have any questions or need support with GoldyChat, please contact us at email@domain.com.
We'd like to thank OpenAI for their amazing GPT-4 model, and the Discord.py team for their excellent library.
use with caution