use env for hyperate token
This commit is contained in:
parent
c2f14b70e7
commit
4cd9b4eaca
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
HOSTNAME=localhost
|
HOSTNAME=localhost
|
||||||
PORT=2056
|
PORT=2056
|
||||||
|
|
||||||
|
HYPERATE_TOKEN=your_hyperate_token_here
|
||||||
|
|
||||||
HYPERATE_ID=a1b2c3
|
HYPERATE_ID=a1b2c3
|
||||||
DISCORD_ID=0000000000000000000
|
DISCORD_ID=0000000000000000000
|
|
@ -8,7 +8,7 @@ export default class {
|
||||||
|
|
||||||
constructor(callback: (data: number) => void) {
|
constructor(callback: (data: number) => void) {
|
||||||
this._socket = new ReconnectingWebSocket(
|
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._keepAlive = null;
|
||||||
this._interval = null;
|
this._interval = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue