updates and stuff iono
All checks were successful
Code quality checks / biome (push) Successful in 12s
All checks were successful
Code quality checks / biome (push) Successful in 12s
This commit is contained in:
parent
ac10faf685
commit
0052ac2532
7 changed files with 13 additions and 33 deletions
|
@ -21,7 +21,7 @@ export default class {
|
|||
|
||||
this._socket.send(
|
||||
JSON.stringify({
|
||||
topic: "hr:84aa0f",
|
||||
topic: `hr:${process.env.HYPERATE_ID}`,
|
||||
event: "phx_join",
|
||||
payload: {},
|
||||
ref: 0,
|
||||
|
|
|
@ -31,7 +31,7 @@ export default class {
|
|||
JSON.stringify({
|
||||
op: 2,
|
||||
d: {
|
||||
subscribe_to_id: "1273447359417942128",
|
||||
subscribe_to_id: process.env.DISCORD_ID,
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
|
|
@ -11,8 +11,8 @@ const effectTick = new Audio("https://no.ipv4.army/raw/Effect_Tick.ogg");
|
|||
document.onclick = () => {
|
||||
"vibrate" in navigator && navigator.vibrate(1);
|
||||
effectTick.currentTime = 0;
|
||||
effectTick.play()
|
||||
effectTick.play();
|
||||
};
|
||||
|
||||
// You're garbage, let me collect you.
|
||||
fetch("/api/gc");
|
||||
fetch("/api/gc");
|
||||
|
|
|
@ -111,7 +111,10 @@ new Backend.Sockets.Hyperate((data) => {
|
|||
});
|
||||
|
||||
new Backend.Sockets.Lanyard((data) => {
|
||||
lanyard = data;
|
||||
lanyard = {
|
||||
discord_status: data.discord_status,
|
||||
activities: data.activities,
|
||||
};
|
||||
server.publish(
|
||||
"lanyard",
|
||||
JSON.stringify({ type: "lanyard", data: lanyard }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue