refactor(core): migrate API and CDN endpoints from fluxer.app to fluxer.com

This commit is contained in:
NoLogicAlan committed 2026-11-14 01:14:52 +03:00
1 parent 21197e7f22
commit c9d932067e
6 files changed
+11 -10

No files matched your search

+4 -3
View File
@@ -200,9 +200,10 @@ export async function run(message, data) {
const d = set.getAll();
const guildName = getGuildName(message);
const rawGuild = message.message?.guild;
const iconUrl = rawGuild?.icon
? "https://cdn.fluxer.app/icons/" + rawGuild.id + "/" + rawGuild.icon + ".webp"
: null;
const iconUrl = rawGuild?.iconURL?.()
?? (rawGuild?.icon
? "https://fluxerusercontent.com/icons/" + rawGuild.id + "/" + rawGuild.icon + ".webp"
: null);
const channels = get247Channels(set);
+2 -2
View File
@@ -2,10 +2,10 @@
"Comment": "Fluxer music bot configuration. Requires Node.js >= 22.13.0. Run 'node --version' to verify.",
"token": "your bot token",
"instanceUrl": null,
"instanceUrl-Comment": "Optional base URL of a self-hosted Fluxer instance (e.g. 'https://chat.example.com'). Leave null or omit to connect to the official fluxer.app.",
"instanceUrl-Comment": "Optional base URL of a self-hosted Fluxer instance (e.g. 'https://chat.example.com'). Leave null or omit to connect to the official fluxer.com.",
"fluxer.js": {
"rest": {
"Comment": "REST client options. 'timeout' is ms before a request to api.fluxer.app is aborted (default: 15000). Raise if you see DOMException AbortError in logs.",
"Comment": "REST client options. 'timeout' is ms before a request to fluxer.com/api is aborted (default: 15000). Raise if you see DOMException AbortError in logs.",
"timeout": 30000,
"retries": 3
}
+2 -2
View File
@@ -244,13 +244,13 @@ class Remix {
commands.onPing = (msg) => {
msg.replyEmbed(
this.handler.format(
"My prefix in this server is `$prefix`\n\nRun `$prefix$helpCmd` to get started!",
"My prefix in this community is `$prefix`\n\nRun `$prefix$helpCmd` to get started!",
msg.message.guildId
),
false,
{
icon_url: (msg.channel?.channel?.guild?.icon || msg.server?.icon)
? `https://cdn.fluxer.app/icons/${msg.channel?.channel?.guild?.id ?? msg.server?.id}/${msg.channel?.channel?.guild?.icon ?? msg.server?.icon}.webp`
? `https://fluxerusercontent.com/icons/${msg.channel?.channel?.guild?.id ?? msg.server?.id}/${msg.channel?.channel?.guild?.icon ?? msg.server?.icon}.webp`
: null,
title: msg.channel?.channel?.guild?.name ?? msg.server?.name ?? null,
}
+1 -1
View File
@@ -739,7 +739,7 @@ const BotVoiceMixin = {
name: guild.name,
id: guild.id,
icon: guild.icon
? `https://cdn.fluxer.app/icons/${guild.id}/${guild.icon}.webp`
? `https://fluxerusercontent.com/icons/${guild.id}/${guild.icon}.webp`
: null,
description: guild.description ?? null,
ownerId: guild.ownerId ?? null,
+1 -1
View File
@@ -32,7 +32,7 @@ import util from "node:util";
import { EmbedBuilder } from "@fluxerjs/core";
import { logger } from "./Logger.mjs";
const DEFAULT_API_BASE = "https://api.fluxer.app/v1";
const DEFAULT_API_BASE = "https://fluxer.com/api/v1";
const SEND_TIMEOUT_MS = 5_000;
const CRASH_SEND_BUDGET_MS = 3_500;
const FORWARD_DEDUP_MS = 60_000;
+1 -1
View File
@@ -17,7 +17,7 @@ import { EmbedBuilder } from "@fluxerjs/core";
import { logger } from "../core/Logger.mjs";
/** @type {string} Default API endpoint for direct REST fallback */
const DEFAULT_API_BASE = "https://api.fluxer.app/v1";
const DEFAULT_API_BASE = "https://fluxer.com/api/v1";
/**
* @class StatusChannelManager