Closed Justiniscoding closed 3 years ago
Can you please give more information. The issue might be that Visual Studio Code does not allow access to the network. Try running the following snippet and see what is logged
const ws = require("ws");
var socket = new ws("wss://echo.websocket.org")
socket.on("message", function(d) {
console.log(d)
})
socket.on("open", function() {
socket.send("Test Message")
})
I fixed the comment. (Sorry for accidentally closing the issue)
Any luck?
The issue might be a in the Blooket.JS Script. in modules/socket.js
, around line 83
var socket = new WebSocket(wss:// ... )
Should be
var socket = new WebSocket(sockets[4])
This issue will be fixed in version 1.2.0
ok, any plans on when it will be out?
Later today.
ok
I just need to finish up allowing support for the new Tower Defense
Game Mode
yes, that will be hard. i tried it and it is very intuitive. not the best for bots
Well, The bot is not going to "playing" the game, well, at least not in version 1.2, but it will be giving 1 point to the player each time a question is answered, kind of skipping the whole "defense" concept. This might be changed, but for now, this is what works
@RedYetiDev line 100 in blooket.js is wrong. It was like that for me because i used .replace(). you have to change it so that each underscore becomes a space. for example: Snowy_Owl should be Snowy Owl
Will fix, I converted it to a list incorrectly.
Patched in next update.
@RedYetiDev Sorry for the delay, i ran it and i got Test Message! in the console
@RedYetiDev i tested it now it works!
Odd, The original issue might be caused by the "socket.js" issue
PS: Sorry that it originally took me 10 hours to give my first response on this issue, I was working on my website and Jekyll Theme. For comments regarding to them, make issues on their repos.
@RedYetiDev update to the randomized issue: i used game.randomblook()
and got unreturned object promise as my blook
Please resubmit this as a bug report
i was testing this in vscode and i got an error saying it is an invalid pin. i used the exact same script in repl.it and it worked perfectly. why did i get the error.