harshitethic / whatsapp-turbo-gpt

Introducing a WhatsApp bot by Harshit Sharma (nickname: harshitethic) powered by OpenAI's ChatGPT and NodeJS using Baileys library. Engage in natural language conversations and generate responses using the latest GPT 3.5 turbo model. Ideal for businesses and individuals looking to automate customer support.
MIT License
25 stars 64 forks source link

Unexpected token #8

Open issayevruslan opened 1 year ago

issayevruslan commented 1 year ago

/home/wabot/whatsapp-turbo-gpt/index.js:254 let reason = new Boom(lastDisconnect?.error)?.output.statusCode; ^

SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47