Awesome Friend is a Node.js program that generates and sends personalized good morning text messages to your contacts. These messages are crafted to have a tone of gratitude and surrender toward God, making them perfect for warm inspirations and encouragement, but feel free to change it to whatever you like by adjusting the chatGPT prompt. The program uses the macOS Messages app to send messages from your Mac to your iPhone contacts.
ℹ️ Before you can use Awesome Friend, make sure you have the following prerequisites:
- A Mac computer with macOS installed.
- An iPhone connected to your Mac.
- Node.js and npm (Node Package Manager) installed on your Mac.
- An OpenAI ChatGPT API key. If you don't have one, you can get it by signing up here.
The default ChatGPT model used in Awesome Friend is gpt-4-1106-preview
. However, due to limited availability, you may need to use a different model like gpt-3.5-turbo
for your API key.
To change the model, follow these steps:
- Open the
good-morning.js
file in your project directory. - Locate the following line of code in the
generateMessages
function:model: 'gpt-4-1106-preview',
- Replace
gpt-4-1106-preview
withgpt-3.5-turbo
or any other available model name that corresponds to your API key.model: 'gpt-3.5-turbo',
Now you're using the specified model for generating messages.
Note: Ensure that the model you choose is compatible with your OpenAI API key. Some keys may only work with specific models.
Follow these simple steps to set up and run Awesome Friend:
- Clone the Awesome Friend repository to your local machine:
git clone https://github.com/your-username/awesome-friend.git cd awesome-friend
- Install the required dependencies:
npm install
- Create an .env file in the project directory and add your OpenAI API key:
OPENAI_API=your-openai-api-key
- Add your contacts to the contacts.json file. Note: Contacts must have an iPhone
- Run the program:
npm start
Awesome Friend will generate personalized good morning messages for each contact and send them via the macOS Messages app to your iPhone contacts.
We welcome contributions to make Awesome Friend even better! Before contributing, please review our Code of Conduct:
- Be respectful: Treat all contributors and users with respect and kindness.
- Be inclusive: We welcome contributors from all backgrounds and experiences.
- Be collaborative: Work together with others in a constructive manner.
- Be patient: Not everyone may have the same level of expertise, so be patient and helpful.
- Report issues: If you encounter any issues or problems, please report them through the issue tracker.
By following these guidelines, we aim to create a friendly and welcoming environment for all contributors.
Feel free to submit bug reports, feature requests, or even pull requests to improve the program. Together, we can make Awesome Friend even more awesome!
This project is licensed under the MIT License - see the LICENSE file for details.