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
117156c1b2
commit
98fe502b56
4 files changed
+30
-16
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user