vasani-arpit / WBOT

A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 4th, 2024
Other
987 stars 314 forks source link

Allow external files for injection #304

Closed vasani-arpit closed 2 years ago

vasani-arpit commented 2 years ago

When we load inject.js into the browser, We will allow other js file to be imported into the browser. This way user can add their own logic and functions.

In bot.json we will take a folder path

Will take that part and will get all the js files in that folder. if there are then we will inject in browser one by one and will log in cli like File 1.js loaded

To avoid function overwriting we will load these files first and then we will load our WAPI and inject.js files.

vasani-arpit commented 2 years ago

added in version 0.28