Create 5 NodeJs Functions App @open-wa/wa-automate

Job ID: 31091654

Budget: $250 – $750 USD

Hello. This project is for an app using WA-Automate library, for Whatsapp, please check on Github for more details about the library: https://docs.openwa.dev/classes/api_Client.Client.html#onMessage

Check API Events and Methods: https://docs.openwa.dev/classes/api_Client.Client.html

- Only the code - No need frontend;
- Only pure node js;

0. Use base code on the repo main page;

1. Fetch Json Config for configurations, everytime script runs: https://lztforeferfiles.s3.us-west-2.amazonaws.com/base.json

2. Create function, ignore all group messages
message.isGroupMsg === true
get message.chatId
archiveChat (using id)

json config:
ignoreAllGroups: true => On and off
notIgnoredGroups: if group id is on this list, exception => Not ignored

3. Create autoresponse function
onAnyMessage
if message.body === responseList.content (any one)
get response object
answer with answers object (will be with the same name and same position)

4. Schedule Message
Check time.now
if time < time.now = ignore
else, send message with content and ID

5. Send Message to all chats
Check time.now
if time < time.now = ignore
get all chat id
loop through all of them
simulateTyping (2seconds)
send
next content
Related categories: JavaScript Software Architecture Node.js API