maxenxe / HQ-Trivia-Bot-NOT-MAINTAINED-

Small NodeJS bot for HQ Trivia
24 stars 13 forks source link

Unable to get answers!!!!!! Please help!!!! #26

Open PoonamChohdhary1991 opened 6 years ago

PoonamChohdhary1991 commented 6 years ago

Admin@DESKTOP-527GMSJ MINGW64 ~/Desktop/HQ-Trivia-Bot (master) $ node bot.js Screenshot done Answers resized node-tesseract: Running 'tesseract answers.jpg C:\Users\Admin\AppData\Local\Temp \tmp-5164wBfCIzGL8Bvb' node-tesseract: Deleting 'C:\Users\Admin\AppData\Local\Temp\tmp-5164wBfCIzGL8Bvb .txt' node-tesseract: Preprocessor cleanup Question resized node-tesseract: Running 'tesseract question.jpg C:\Users\Admin\AppData\Local\Tem p\tmp-5164Gr08LXyb7nOI' node-tesseract: Deleting 'C:\Users\Admin\AppData\Local\Temp\tmp-5164Gr08LXyb7nOI .txt' node-tesseract: Preprocessor cleanup The question is " The State Flower of Jharkhand is named after me site of whlc h famous baffle? " Wikipedia link found: https://en.wikipedia.org/wiki/List_of_Indian_state_flowers

C:\Users\Admin\Desktop\HQ-Trivia-Bot\bot.js:58 if($('body').text().toLowerCase().indexO f(answers[0].toLowerCase()) != -1) {

         ^

TypeError: Cannot read property 'toLowerCase' of undefined at Request._callback (C:\Users\Admin\Desktop\HQ-Trivia-Bot\bot.js:58:94) at Request.self.callback (C:\Users\Admin\Desktop\HQ-Trivia-Bot\node_modules\ request\request.js:186:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request. (C:\Users\Admin\Desktop\HQ-Trivia-Bot\node_modules\re quest\request.js:1163:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage. (C:\Users\Admin\Desktop\HQ-Trivia-Bot\node_mo dules\request\request.js:1085:12) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20)

PoonamChohdhary1991 commented 6 years ago

question answers

nanip9997 commented 6 years ago

Can you please clarify the process I was unable to get question.jpg and cannot set the coordinates right if possible make a screen recording it would help a lot of us

maxenxe commented 6 years ago

This error means it somehow can't read the answers, https://www.youtube.com/watch?v=QzdqT0HTGLs small vid that shows the setup

nanip9997 commented 6 years ago

The coordinates that he got are not working when I does the same thing any suggestions ?

On Mon, 30 Apr 2018, 2:08 am Maxence Renglet, notifications@github.com wrote:

This error means it somehow can't read the answers, https://www.youtube.com/watch?v=QzdqT0HTGLs small vid that shows the setup

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maxenxe/HQ-Trivia-Bot/issues/26#issuecomment-385279750, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab-xlUgFX09UDyJKQSfBrcwRqD9FV1_mks5ttiTEgaJpZM4S7OE2 .

maxenxe commented 6 years ago

Yep because the coordinates are different for every user, try looking at answer.jpg and question.jpg or screenshot.jpg to see what is the problem and play with the values