printies testing
This commit is contained in:
parent
5791b2970f
commit
9e148c00cd
1 changed files with 5 additions and 0 deletions
5
index.js
5
index.js
|
@ -13,6 +13,8 @@ var sockets = []
|
|||
|
||||
var pfpSeason = "default"
|
||||
|
||||
var violetSpins = 0
|
||||
|
||||
function randomFileInDir(directory) {
|
||||
var dir = fs.readdirSync(directory)
|
||||
return path.join(directory, dir[Math.floor(Math.random() * dir.length)])
|
||||
|
@ -128,6 +130,9 @@ wsServer.on("connection", function connection(socket) {
|
|||
}
|
||||
|
||||
socket.send(`{"op": 3}`)
|
||||
} else {
|
||||
console.log(data)
|
||||
violetSpins += 1
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue