diff --git a/commands/settings.mjs b/commands/settings.mjs index 7501130..2836c8d 100644 --- a/commands/settings.mjs +++ b/commands/settings.mjs @@ -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); diff --git a/config_example.json b/config_example.json index 037e29f..7ba1db3 100644 --- a/config_example.json +++ b/config_example.json @@ -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 } diff --git a/src/core/Bot.mjs b/src/core/Bot.mjs index 2b875db..74fc8db 100644 --- a/src/core/Bot.mjs +++ b/src/core/Bot.mjs @@ -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, } diff --git a/src/core/BotVoiceMixin.mjs b/src/core/BotVoiceMixin.mjs index 1e236a9..4ac32a8 100644 --- a/src/core/BotVoiceMixin.mjs +++ b/src/core/BotVoiceMixin.mjs @@ -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, diff --git a/src/core/ErrorChannel.mjs b/src/core/ErrorChannel.mjs index abe7893..6472665 100644 --- a/src/core/ErrorChannel.mjs +++ b/src/core/ErrorChannel.mjs @@ -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; diff --git a/src/services/StatusChannelManager.mjs b/src/services/StatusChannelManager.mjs index 862f340..04e265a 100644 --- a/src/services/StatusChannelManager.mjs +++ b/src/services/StatusChannelManager.mjs @@ -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