A simple WhatsApp bot that uses OpenAI's ChatGPT to respond to user inputs. Includes a cron to enable ChatGPT to send messages to recipients at periodic intervals.
C:\Whatsapp BOT GPT\chatgpt-whatsapp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34
const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
^
TypeError: Cannot read properties of null (reading '1')
at LocalWebCache.persist (C:\Whatsapp BOT GPT\chatgpt-whatsapp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at C:\Whatsapp BOT GPT\chatgpt-whatsapp\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.20.4
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
C:\Whatsapp BOT GPT\chatgpt-whatsapp>yarn start yarn run v1.23.0-20200615.1913 $ npm run build && node build/src/main.js
C:\Whatsapp BOT GPT\chatgpt-whatsapp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34 const version = indexHtml.match(/manifest-([\d\.]+).json/)[1]; ^
TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (C:\Whatsapp BOT GPT\chatgpt-whatsapp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69) at C:\Whatsapp BOT GPT\chatgpt-whatsapp\node_modules\whatsapp-web.js\src\Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.20.4 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.