GithubHelp home page GithubHelp logo

Comments (18)

csprl avatar csprl commented on June 4, 2024 4

It seems to still work decently. The NPM package hasn't been updated, but you can install directly from GitHub with npm install wwwg/kahoot.js if you want to save yourself from the trouble of manually replacing the files. Hope this helps!

from kahoot.js.

uxmgod avatar uxmgod commented on June 4, 2024 3

Was working on a project with this, figured out that the NPM package was way behind in version, replace the files in node_modules and changed a few lines of code, then it worked!

from kahoot.js.

uxmgod avatar uxmgod commented on June 4, 2024 3

I first installed the package with npm install kahoot.js --save in the directory I was working in, I then downloaded the latest version of this repository and in node_modules I went into the kahoot.js directory and deleted all the files inside, replacing them with the files I downloaded from the repository. You will have leftover files from the repository, they aren't needed. Upon trying to run it you will get an error, I don't remember the exact error but once it happens go to the line of code where the error occurs and replace it with something that wont cause the error, I'm pretty sure I just commented it out.
Hope this helps.

from kahoot.js.

lowJ avatar lowJ commented on June 4, 2024

Really? I was thinking of useing this package to create an app, but if not...

from kahoot.js.

nitroxplunge avatar nitroxplunge commented on June 4, 2024

Awesome! Thanks! What exactly did you "change"?

from kahoot.js.

Nat4853 avatar Nat4853 commented on June 4, 2024

I am also attempting to use this, but I don't understand the steps taken in the last comment, because I do not know where the error is taking place. Any help would be greatly appreciated. The error I get is:

undefined:2
var _ = {       replace: function() {           var args = arguments;           var str = arguments[0];         return str.replace(args[1], args[2]);        }}; var log = function(){};return decode.call(this, 'wKBTXPG1wf86AhxstjwUTv3uQW36fojtIWx0BTporcCRWJAyOE8F5OTMFNyrlVQxbbhp3GzsjmSme8uGOuuTJK39oxpoQoNnSwnl'); function decode(message) {var offset = ((73 + 41 * 27 + 21) + (56 * 32)) + 11; if (this.angular.isString(offset)) {log("Offset derived as: {", offset, "}");}return _.replace(message, /./g, function(char, position) {return String.fromCharCode((((char.charCodeAt(0) * position) + offset) % 77) + 48);});}
                                                                                                                                                                                                                                                                                                                                                                                                                          ^

TypeError: Cannot read property 'isString' of undefined
    at decode (eval at <anonymous> (/home/pi/Kahoot-bot/node_modules/kahoot.js/src/token.js:46:17), <anonymous>:2:373)
    at eval (eval at <anonymous> (/home/pi/Kahoot-bot/node_modules/kahoot.js/src/token.js:46:17), <anonymous>:2:161)
    at /home/pi/Kahoot-bot/node_modules/kahoot.js/src/token.js:48:13
    at Function.solveChallenge (/home/pi/Kahoot-bot/node_modules/kahoot.js/src/token.js:49:5)
    at me.requestToken (/home/pi/Kahoot-bot/node_modules/kahoot.js/src/token.js:70:22)
    at IncomingMessage.res.on.chunk (/home/pi/Kahoot-bot/node_modules/kahoot.js/src/token.js:33:5)
    at emitOne (events.js:125:13)
    at IncomingMessage.emit (events.js:221:7)
    at IncomingMessage.Readable.read (_stream_readable.js:478:10)
    at flow (_stream_readable.js:849:34)

The answer is probably right there but I'm new to all of this ^_^
Thanks in advance, and sorry for bothering you!

from kahoot.js.

uxmgod avatar uxmgod commented on June 4, 2024

Sorry for the late reply, did you change all the files inside the node_modules directory?

from kahoot.js.

Nat4853 avatar Nat4853 commented on June 4, 2024

I did, but I will try once more once I regain physical access. Thanks for the feedback! ^_^

from kahoot.js.

 avatar commented on June 4, 2024

can someone upload a fixed package to his/her account?

from kahoot.js.

uxmgod avatar uxmgod commented on June 4, 2024

I'll do this once I have the time.

from kahoot.js.

 avatar commented on June 4, 2024

thank you

from kahoot.js.

JipFr avatar JipFr commented on June 4, 2024

Any chance you've gotten to it yet, @cooperkilian?

from kahoot.js.

lynxog avatar lynxog commented on June 4, 2024

the question.answer(0) doesn't work, does anyone have a solution for this?

from kahoot.js.

nitroxplunge avatar nitroxplunge commented on June 4, 2024

@lynxmelynx I have the same problem

from kahoot.js.

lynxog avatar lynxog commented on June 4, 2024

@casperlofgren do you know what to do?
I really need this package ^_^

from kahoot.js.

csprl avatar csprl commented on June 4, 2024

Last time I checked it answers correctly (check the scoreboard) but it doesn't show during the question. I don't know why this happens, and currently I don't have time to investigate.

from kahoot.js.

nitroxplunge avatar nitroxplunge commented on June 4, 2024

@lynxmelynx Testing it I have found the same results as casper, it seems to have to do with a deprecated function on Kahoot's side. I don't know if there's a replacement though.

from kahoot.js.

theusaf avatar theusaf commented on June 4, 2024

Late reply, but if you are still using this old kahoot.js package, there are many things outdated with it. It works for the most part, but there are many things missing / broken, which are fixed in my version of this project, which can also be found on npm as "kahoot.js-updated." The reason why kahoot doesn't show the script answering was because the "submit" id was changed from 6 to 45.

Edit:
This package no longer works.

from kahoot.js.

Related Issues (14)

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.