Skip to content

an express server bot that will remind me to wish Birthdays to my friends.

License

Notifications You must be signed in to change notification settings

alok722/birthday-reminder-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

welcome to Birthday Remider Bot 👋

Version Maintenance Licence

an express server bot which will remind me to wish Birthday to my friends.

❓ But How?

It runs a cron job daily at 11pm and fetch all the records from MongoDB and check if someone's birthday is tomorrow, if Yes it will trigger an email to me reminding me about the Birthday.

❔ How can you make this bot work for you?

Follow below steps to make this bot yours.

Step 1 : Fork this Repository.
Step 2 : Clone the forked repository to your local
Step 3 : Create a .env file in the root and add these keys & value. *
         EMAIL:BOT_EMAIL**
         PASSWORD:BOT_EMAIL_PASSWORD**
         MONGODB_CONNECTION_URL:YOUR_DB_URL
Step 4: Go this path (src\services\notification.service.js) and update line no. 15 & 17
Step 5: Commit and push your changes to github, then host your server.
Step 6: You can add data to MongoDB from postman by running a local instance of this server connected to cloud database. The request url is POST `localhost:3030\api\add` and request body would be, { "name" : "Your Friend Name", "dob" : "2/7"}. Over here the DOB is 2nd July.

* Use Github Secret to set your .env content
** To configure your gmail to send out email on behalf of Bot, please follow this link. https://edigleyssonsilva.medium.com/how-to-send-emails-securely-using-gmail-and-nodejs-eef757525324

happy wishing 😊

👤 author

Alok raj (alokr417@gmail.com)

🚀 future scope

  • making it more generic and easy to use

🤝 contributing

contributions, issues and feature requests are welcome!
feel free to check issues page.

🙌 show your support

give a ⭐️ if this project helped you!


About

an express server bot that will remind me to wish Birthdays to my friends.

Topics

Resources

License

Stars

Watchers

Forks