Code Monkey home page Code Monkey logo

whatsgpt's People

Contributors

apollotsantos avatar dorlanpabon avatar pascalroget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

whatsgpt's Issues

Evaluation failed: TypeError: Cannot read properties of undefined (reading 'LegacyPhoneFeatures')

I get the error:
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'LegacyPhoneFeatures')
at puppeteer_evaluation_script:13:76
at ExecutionContext._evaluateInternal (...\whatsgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (...\whatsgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.initialize (...\whatsgpt\node_modules\whatsapp-web.js\src\Client.js:267:9)

Do you have any idea why this happens?
Thanks in advance

Type : Module

Hello Pascal,
I have the problem that then i want to run the script i get this error :
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'C:\Users\DxDek\Documents\whatsgpt-main\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///C:/Users/DxDek/Documents/whatsgpt-main/index.js:9:1
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)

and if i change it to Type = commonjs the terminal want that i change it to = module

Dear 
DxDek

Conversation is out of context

Can someone help me? My chatgpt instance is running fine, but I can't have a normal conversation because it keeps returning the chat message saying I'm out of context and I need to provide more details... What's the reason for this? Wouldn't it have to work like chatgpt in the browser?

Example:
Me: "What is the largest planet in the solar system?"
ChatGPT: "Jupiter"
Me: "What's the second biggest?"
ChatGPT: "I'm not understanding the context of the conversation, please provide more details."

Chrome starting windows issue

I tried on windows, I've set up the CHROME_PATH in env and also tried directly in index.js but without success.
I've also tried with chromium but the same thing.
I can't make it work on windows.

ErrorSSS

I am getting an error when two people send messages at the same time. Is there a solution for this?

Random Error Message

I get following error at random.
Its running on windows 10

file:///C:/Users/Kliment/Desktop/ChatGPT/whatsgpt/node_modules/chatgpt/build/index.js:1598
        const error = new ChatGPTError(result.error.message);
                      ^

ChatGPTError: ChatGPTAPI error 429
    at ChatGPTAPIBrowser.sendMessage (file:///C:/Users/Kliment/Desktop/ChatGPT/whatsgpt/node_modules/chatgpt/build/index.js:1598:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///C:/Users/Kliment/Desktop/ChatGPT/whatsgpt/index.js:87:24 {
  statusCode: 429,
  statusText: ''
}

ChatGPTError: ChatGPTAPI error 400

The issue is bellow. After ignoring some WhatsApp-web items, the next wall I hit is this. Did anyone find a fix for this?

Creating new conversation for [email protected]
file:///Users/user/Downloads/whatsgpt-main-5/node_modules/chatgpt/build/index.js:1604
const error = new ChatGPTError(result.error.message);
^

ChatGPTError: ChatGPTAPI error 400
at ChatGPTAPIBrowser.sendMessage (file:///Users/user/Downloads/whatsgpt-main-5/node_modules/chatgpt/build/index.js:1604:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/user/Downloads/whatsgpt-main-5/index.js:87:24 {
statusCode: 400,
statusText: ''
}

Error 429 after a while

Bot runs very smooth but after like 1hour or smth i send a message and recive this error:

image

what can i do?

regards

Broken

I believe the modules received updates and broke things. Could someone with more knowledge, review the project. I've spent my entire day without any real progress :(

ChatGPTError: ChatGPTAPI error 429 on first message

file:///C:/Stuff/whatsapp-bottt/whatsgpt/node_modules/chatgpt/build/index.js:1464
const error = new ChatGPTError(result.error.message);
^

ChatGPTError: ChatGPTAPI error 429
at ChatGPTAPIBrowser.sendMessage (file:///C:/Stuff/whatsapp-bottt/whatsgpt/node_modules/chatgpt/build/index.js:1464:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///C:/Stuff/whatsapp-bottt/whatsgpt/index.js:87:24 {
statusCode: 429,
statusText: ''
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.