mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
feat(ui): upgrade audio DSP, seek, thumbnail, and voice session embeds
- Modernize %seek with track artwork thumbnail and visual progress bar - Enhance %filter with real-time DSP active status badges and card spacing - Add detailed frequency band indicators to %bassboost, %speed, and %pitch - Redesign %thumbnail with framed artwork and song metadata - Transform %leave into a structured voice session termination card - Polish %ping with categorized latency health metrics (REST, Gateway, Audio Node) - Leave %stats untouched as intended - Complete translations across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR)
This commit is contained in:
1 parent
8874ed1ec6
commit
4c3c04bd7d
14 files changed
+456
-119
No files matched your search
+36
-5
@@ -5,7 +5,7 @@
|
||||
|
||||
import { CommandBuilder } from "../src/commands/index.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { getGlobalColor } from "../src/ui/index.mjs";
|
||||
import { Utils } from "../src/utils/Utils.mjs";
|
||||
|
||||
export const BASSBOOST_PRESETS = {
|
||||
low: {
|
||||
@@ -59,7 +59,7 @@ export const command = new CommandBuilder()
|
||||
o.setName("level")
|
||||
.setDescription("Bass boost level: 'low', 'medium', 'hard', or 'off'.", "options.bassboost.level")
|
||||
.addChoices("low", "medium", "hard", "off")
|
||||
.setRequired(false)
|
||||
.setDefault("medium")
|
||||
)
|
||||
.addAliases("bb", "bass");
|
||||
|
||||
@@ -74,13 +74,18 @@ export async function run(message, data) {
|
||||
const p = await this.getPlayer(message, false, false, false);
|
||||
if (!p) return;
|
||||
|
||||
const current = p.queue?.getCurrent();
|
||||
const levelArg = data.get("level")?.value?.toLowerCase() || "medium";
|
||||
const prefix = this.handler.getPrefix(message.message?.guildId ?? message.channel?.guildId) || "%";
|
||||
|
||||
const embed = new EmbedBuilder().setColor(getGlobalColor());
|
||||
const embed = new EmbedBuilder().setColor(0xe9196c);
|
||||
|
||||
if (levelArg === "off" || levelArg === "none" || levelArg === "reset") {
|
||||
await p.applyFilter({}, null);
|
||||
embed.setDescription(this.t(message, "responses.bassboost.disabled"));
|
||||
embed.setAuthor({ name: `🔊 ${this.t(message, "responses.bassboost.eqTitle")}` })
|
||||
.setTitle("⏹️ Bass Boost Off")
|
||||
.setDescription(this.t(message, "responses.bassboost.disabled"))
|
||||
.setFooter({ text: `${prefix}bassboost <low|medium|hard>` });
|
||||
return message.reply({ embeds: [embed] }).catch(() => {});
|
||||
}
|
||||
|
||||
@@ -97,6 +102,32 @@ export async function run(message, data) {
|
||||
return message.reply({ embeds: [embed] }).catch(() => {});
|
||||
}
|
||||
|
||||
embed.setDescription(this.t(message, "responses.bassboost.applied", { level: preset.label }));
|
||||
let desc = this.t(message, "responses.bassboost.applied", { level: preset.label });
|
||||
if (current?.title) {
|
||||
const rawAuthor = current.artist || (typeof current.author === "object" ? current.author?.name : current.author);
|
||||
const authorStr = rawAuthor ? ` • ${rawAuthor}` : "";
|
||||
desc += `\n**${Utils.truncate(current.title, 45)}**${authorStr}`;
|
||||
}
|
||||
|
||||
const subBassText = this.t(message, "responses.bassboost.subBass") || "Sub-Bass";
|
||||
const midBassText = this.t(message, "responses.bassboost.midBass") || "Mid-Bass";
|
||||
const highText = this.t(message, "responses.bassboost.high") || "High";
|
||||
|
||||
const gainSub = levelArg === "hard" ? "+1.10 dB" : levelArg === "low" ? "+0.25 dB" : "+0.70 dB";
|
||||
const gainMid = levelArg === "hard" ? "+0.80 dB" : levelArg === "low" ? "+0.15 dB" : "+0.50 dB";
|
||||
const gainHigh = levelArg === "hard" ? "-0.80 dB" : levelArg === "low" ? "+0.00 dB" : "-0.65 dB";
|
||||
|
||||
desc += `\n\n` + "`" + `${subBassText}: ${gainSub} │ ${midBassText}: ${gainMid} │ ${highText}: ${gainHigh}` + "`";
|
||||
|
||||
embed
|
||||
.setAuthor({ name: `🔊 ${this.t(message, "responses.bassboost.eqTitle")}` })
|
||||
.setTitle(`Bass Boost: ${preset.label}`)
|
||||
.setDescription(desc)
|
||||
.setFooter({ text: this.t(message, "responses.bassboost.resetHint", { prefix }) });
|
||||
|
||||
if (current?.thumbnail) {
|
||||
embed.setThumbnail(current.thumbnail);
|
||||
}
|
||||
|
||||
message.reply({ embeds: [embed] }).catch(() => {});
|
||||
}
|
||||
Reference in new issue
Block a user