A WhatsApp Bot that will Congratulations on the birthday of those close to you
Node v12+ is required.
- Clone this project or download it and unzip it.
- Inside the folder run the command
npm install - To start the Bot, just type
npm start
- You need to make Google Sheet with all the necessary details.
- You can also make it using Google Forms.
The columns should be like this: (ofc you can change the order in the code)
| Timestamp | Name | BirthdayType | BirthdayLoazi | HebrewDay | HebrewMonth | HebrewYear | Phone | Sex | |
|---|---|---|---|---|---|---|---|---|---|
| (Automade) | {Name} | {genery} | {01/01/1970} | {א} | {תשרי} | {התשפב} | {972501234567} | {hello@world.com} | {זכר/נקבה} |
NOTE: Make sure the Google Sheet can viewed with the link.
If you want the bot will start a BirthdayProcesse when it initialize, you need to add this lines to code (with your own details):
/* start process when the bot start */
birthdayProcesses['ssid'] = { // ssid of the google sheet
"name": "{name}", // name for processe
"GroupType": "{type}", // type of the blessing
"group": "{XXXXXXX@g.us}", // where the blessing will send
"userDebug": "{XXXXXXXXXX@c.us}", // where all the info about the processe will send (can be contact/group)
'checkBirthdayHour': "{10}" // when the bot will check the birthday
} (the code of the bot can be found inside WaBot.js)
!ping- check if the bot is alive.!get-time-!birthday-stop-!birthday-stop-all-!birthday-list-!birthday-start-!birthday-start-json-!setUTC-!birthday-sethour-!birthday-help-!info-!get-admins-!set-admins-!unset-admins-
for running the bot 24/7, it recommended to deploy it on server. you can use AWS, Heroku, Orcale Esc. (or bought Reseberry PI)
- whatsapp-web.js - the base of this bot