This commit is contained in:
NoLogicAlan committed 2026-05-17 00:41:44 +03:00
1 parent 117156c1b2
commit 98fe502b56
4 files changed
+30 -16

No files matched your search

+8 -4
View File
@@ -26,12 +26,16 @@ export class FluxerListManager {
* @param {string} [config.apiKey] - FluxerList API key (prefixed with fl_)
* @param {string} [config.serverId] - Default server ID or slug for voter queries
* @param {string} [config.botId] - Default bot ID or slug for voter queries
* @param {string} [config.serverSlug] - Server URL slug for website links (e.g. "remix-hq")
* @param {string} [config.botSlug] - Bot URL slug for website links (e.g. "remix")
*/
constructor(config = {}) {
this.apiKey = config?.apiKey ?? "";
this.serverId = config?.serverId ?? "";
this.botId = config?.botId ?? "";
this.enabled = !!this.apiKey;
this.apiKey = config?.apiKey ?? "";
this.serverId = config?.serverId ?? "";
this.botId = config?.botId ?? "";
this.serverSlug = config?.serverSlug ?? config?.serverId ?? "";
this.botSlug = config?.botSlug ?? config?.botId ?? "";
this.enabled = !!this.apiKey;
// In-memory cache: Map<cacheKey, { data, expiresAt }>
this._cache = new Map();
+1 -1
View File
@@ -103,7 +103,7 @@ export class Dashboard {
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}`;
this.redis.platform = `fluxer`;
}
// Dashboard Function Dispatch