mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
hotfix
This commit is contained in:
1 parent
e966b6ce20
commit
db0ca569ee
9 files changed
+426
-42
No files matched your search
@@ -92,6 +92,20 @@ export class Dashboard {
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════════════════
|
||||
// ── Bot ID isolation ──────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
* Set the bot ID for multi-bot Redis namespace isolation.
|
||||
* Updates the Redis platform string so each bot uses its own channel namespace.
|
||||
* @param {string} botId - The bot's Discord user ID
|
||||
*/
|
||||
setBotId(botId) {
|
||||
if (!this.enabled || !this.redis) return;
|
||||
// Use "fluxer_<botId>" as the platform so each bot's Redis messages
|
||||
// are isolated. The dashboard backend must also be configured to match.
|
||||
this.redis.platform = `fluxer_${botId}`;
|
||||
}
|
||||
|
||||
// Dashboard Function Dispatch
|
||||
// ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
|
||||
Reference in new issue
Block a user