Prince-Mendiratta / BotsApp

Your personal assistant, on WhatsApp! The most user friendly userbot for the platform!
GNU General Public License v3.0
5.5k stars 1.27k forks source link

Add .bing and .gpt commands #173

Closed kofimokome closed 1 year ago

kofimokome commented 1 year ago

!!!! ALERT !!!! STILL HAVE CODE CLEANUPS TO DO. PULL REQUEST WILL BE CREATED AS DRAFT

.bing sends commands to Microsoft's New Bing .gpt sends commands to OpenAI's ChatGPT

Major changes: The new Bing and chatGPT packages require Node >= 18 and both packages are ESM-only. commonJS modules are not supported.

  1. The following changes were made to the tsconfig file in order to make the new plugins work with BotsApp
    • [x] target was changed to es2022
    • [x] module was changed to esnext
  2. The following changes were made to package.json
    • [x] type: "module" was added
  3. dbAuth.js was renamed to dbAuth.cjs since it is not compatible with es2022 it will be treated ascommonJS
  4. The whole code base was updated to work with es2022
  5. New Docker configurations added
Prince-Mendiratta commented 1 year ago

Hi @kofimokome! Thank you for taking the initiative but currently we are not looking for major changes to the codebase, especially not changing JS versions yet.

kofimokome commented 1 year ago

ok @Prince-Mendiratta . No issues. Nice WhatsApp Bot ✅. It is easy to customize.