mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
refactor(core): migrate API and CDN endpoints from fluxer.app to fluxer.com
This commit is contained in:
1 parent
21197e7f22
commit
c9d932067e
6 files changed
+11
-10
No files matched your search
+2
-2
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user