mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
dynamic http embeds, kofi button, etc
This commit is contained in:
@@ -13,7 +13,9 @@ const { getReplayState, replayEvents } = require('./replayService');
|
||||
const { loadConfig } = require('../helpers/configLoader');
|
||||
|
||||
const discordInvite = loadConfig().discord?.invite || null;
|
||||
const kofiLink = loadConfig().kofi?.link || null;
|
||||
logger.info('Discord invite loaded:', discordInvite ? 'present' : 'not configured');
|
||||
logger.info('Ko-fi link loaded:', kofiLink ? 'present' : 'not configured');
|
||||
|
||||
const ACTIVITY_SYNC_COOLDOWN_MS = 3000;
|
||||
let lastActivitySync = 0;
|
||||
@@ -51,6 +53,9 @@ function buildSession(socket) {
|
||||
discord: {
|
||||
invite: discordInvite,
|
||||
},
|
||||
kofi: {
|
||||
link: kofiLink,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user