mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
25 lines
837 B
JavaScript
25 lines
837 B
JavaScript
// session Service constants
|
|
// Purpose: Defines timing and static social/config constants used by session synchronization behavior.
|
|
// Scope: Keeps runtime behavior unchanged while isolating constants from orchestration logic.
|
|
const { loadConfig } = require('../../helpers/configLoader');
|
|
|
|
const config = loadConfig();
|
|
const discordInvite = config.discord?.invite || null;
|
|
const kofiLink = config.kofi?.link || null;
|
|
const serverTimezone = config.timezone || null;
|
|
const configuredSocials = Array.isArray(config.socials) ? config.socials : null;
|
|
|
|
const ACTIVITY_SYNC_COOLDOWN_MS = 3000;
|
|
const NIGHT_VISION_SYNC_COOLDOWN_MS = 1000;
|
|
const PERIODIC_SYNC_MS = 20000;
|
|
|
|
module.exports = {
|
|
discordInvite,
|
|
kofiLink,
|
|
serverTimezone,
|
|
configuredSocials,
|
|
ACTIVITY_SYNC_COOLDOWN_MS,
|
|
NIGHT_VISION_SYNC_COOLDOWN_MS,
|
|
PERIODIC_SYNC_MS,
|
|
};
|