A simple and effective WhatsApp bot that allows users to set reminders using the command remindme TIME MESSAGE
and sends back the reminder at the specified time.
- Set Reminders: Users can set reminders with a specific time and message.
- Automated Reminders: The bot automatically sends back the reminder at the specified time.
- Data Storage: User data and reminder times are stored securely in a PostgreSQL database.
- Easy to Use: Simple command structure for setting reminders.
- Clone the repository:
git clone https://github.com/mihir2004/whatsappbot.git
- Navigate to the project directory:
cd whatsappbot
- Install the dependencies:
npm install
- Set up the PostgreSQL database:
- Install PostgreSQL if you haven't already.
- Create a database and user for the project.
- Update the database configuration in the project.
-
Start the server:
node server.js
-
Use the
remindme
command in WhatsApp to set a reminder. Supported time formats include:- Relative time (e.g., "10m" for 10 minutes)
- Absolute time (e.g., "9:00 AM" or "23:45")
Example commands:
remindme 10m Take a break remindme 9:00 AM Start meeting remindme 23:45 Go to bed
To set a reminder for 10 minutes to take a break, send the following message in WhatsApp:
remindme 10m Take a break
To set a reminder for 9:00 AM to start a meeting, send the following message in WhatsApp:
remindme 9:00 AM Start meeting
The bot will send back the reminder at the specified times.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Thanks to the contributors of this project.
For any questions or feedback, please open an issue or contact the repository owner.
Feel free to modify this template according to the specific details and requirements of your project.