Skip to content

Commit

Permalink
Lowered discord interval (as it seems to be fine)
Browse files Browse the repository at this point in the history
  • Loading branch information
Admiral-Billy committed Sep 21, 2024
1 parent 43aa766 commit 8cc39da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discord_rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const globals = require("./globals");
let startTime = Date.now()
let adjustedPlayTime = 0;
let sessionStartTime = 0;
const intervalTimeout = 15e3
const intervalTimeout = 1000
function setup() {
const clientId = '1232165629046292551';
DiscordRPC.register(clientId);
Expand All @@ -31,7 +31,7 @@ function setup() {

async function retryDiscordRPCConnection() {
if (globals.discordRPCConnectInterval === undefined) {
console.log('Discord Rich Presence is not available! Will retry every 15s.');
console.log('Discord Rich Presence is not available! Will retry every 1s.');
globals.discordRPCConnectInterval = setInterval(setup, intervalTimeout)
}
clearInterval(globals.discordRPCUpdateInterval)
Expand Down

0 comments on commit 8cc39da

Please sign in to comment.