diff --git a/.env.example b/.env.example index 1b42a78..a4bca71 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,7 @@ HOSTNAME=localhost PORT=2056 +HYPERATE_TOKEN=your_hyperate_token_here + HYPERATE_ID=a1b2c3 DISCORD_ID=0000000000000000000 \ No newline at end of file diff --git a/src/back/utilities/sockets/Hyperate.ts b/src/back/utilities/sockets/Hyperate.ts index acacdb5..d2df809 100644 --- a/src/back/utilities/sockets/Hyperate.ts +++ b/src/back/utilities/sockets/Hyperate.ts @@ -8,7 +8,7 @@ export default class { constructor(callback: (data: number) => void) { this._socket = new ReconnectingWebSocket( - "wss://app.hyperate.io/socket/websocket?token=wv39nM6iyrNJulvpmMQrimYPIXy2dVrYRjkuHpbRapKT2VSh65ngDGHdCdCtmEN9", + `wss://app.hyperate.io/socket/websocket?token=${process.env.HYPERATE_TOKEN}`, ); this._keepAlive = null; this._interval = null;