randomizes pfp with each spin
This commit is contained in:
parent
242a8c55fb
commit
710d7c237f
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ function spinLoop() {
|
||||||
}
|
}
|
||||||
spins += 0.5
|
spins += 0.5
|
||||||
if (Math.round(spins) == spins && sock && sock.OPEN) {
|
if (Math.round(spins) == spins && sock && sock.OPEN) {
|
||||||
|
document.querySelector(".pfp").src = "https://api.violets-purgatory.dev/v1/pfp?" + new Date().getTime()
|
||||||
sock.send(`{"op": 4}`)
|
sock.send(`{"op": 4}`)
|
||||||
console.log("Spin Sent!")
|
console.log("Spin Sent!")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue