4bpb / Chegg-Bot

Chegg bot but better
MIT License
1 stars 1 forks source link

Where can I put the discord token? #2

Open ron4910 opened 3 years ago

ron4910 commented 3 years ago

there is no indicator on where will I put the token at line 125

4bpb commented 3 years ago

Line 189 within the ''

ron4910 commented 3 years ago

there are still errors when the file tries to log in to chegg

4bpb commented 3 years ago

there are still errors when the file tries to log in to chegg

Any specific errors?

ron4910 commented 3 years ago

it says that it failed to execute 'queryselector'. it happened when the script will log the account. I changed the email and pass on lines 47 and 48 to my account details but it still has the same error

4bpb commented 3 years ago

Ah yeah I actually fixed that the other day. As I am current working on another project I can't update it right now but if you go to headless: true in the code and change it to headless: false. The browser will open and auto put in the user and pass. It is erroring at the click login button. You can do that manually with the browser open. Once down request a chegg answer in discord then it should save cookies so you won't need to login again. > it says that it failed to execute 'queryselector'. it happened when the script will log the account. I changed the email and pass on lines 47 and 48 to my account details but it still has the same error

ron4910 commented 3 years ago

Hi! sorry to bother you, this is my last question. As I request a link in the discord server, the script says that unable to create pdf. but I already installed the images-to-pdf in the cmd

4bpb commented 3 years ago

Hi! sorry to bother you, this is my last question. As I request a link in the discord server, the script says that unable to create pdf. but I already installed the images-to-pdf in the cmd

The only time I was able to replicate that same error was when the question did not have an answer to it. Can you verify that it does?

ron4910 commented 3 years ago

it already have the needed pictures in the folder. I think the problem is in creating the pdf. or there is there is wrong in what I'm doing.

github

4bpb commented 3 years ago

it already have the needed pictures in the folder. I think the problem is in creating the pdf. or there is there is wrong in what I'm doing.

github

I just fixed it I believe. Please redownload index.js. If you have any questions you can add me on discord blake#4692