mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
feat(ui): modernize bot commands, Last.fm suite, and system embeds
- Modernize audio controls (%volume, %volumedefault, %bassboost, %autoplay, %trackopt, %shuffle, %clear, %list, %pause, %resume) - Upgrade Last.fm suite (%lastfm play directory, spotlight cards, music podiums, tags, and profile stats) - Polish system & voice embeds (%vote supporter verification, %servers network directory, %forceleave, and 24/7 watchdog) - Achieve 100% localization parity across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR) with zero missing keys
This commit is contained in:
1 parent
885db461ce
commit
e8171dce26
33 files changed
+1529
-440
No files matched your search
@@ -6,7 +6,8 @@
|
||||
*/
|
||||
|
||||
|
||||
import { cleanId, getMessageGuildId } from "../../src/ui/index.mjs";
|
||||
import { cleanId, getMessageGuildId, getGlobalColor } from "../../src/ui/index.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import runnables from "../../settings/runnables.mjs";
|
||||
import {
|
||||
parseBool, displayValue, getGuildName, embed, tWrap, prettifySettingLabel,
|
||||
@@ -109,7 +110,30 @@ export async function handleShortcut(ctx, message, settingKey, valueTokens) {
|
||||
}
|
||||
const val = set.get(settingKey);
|
||||
const label = prettifySettingLabel(settingKey, t247, guildId);
|
||||
return message.reply(embed("**" + label + "**\nValue: " + displayValue(settingKey, val)));
|
||||
const defaultVal = ctx.settingsMgr?.defaults?.[settingKey];
|
||||
const shortcutEmbed = new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setAuthor({ name: ctx.t(message, "responses.settings.shortcutAuthor") })
|
||||
.setTitle(`⚙️ \`${settingKey}\` — ${label}`)
|
||||
.addFields(
|
||||
{
|
||||
name: `📌 ${ctx.t(message, "responses.settings.shortcutValueField")}`,
|
||||
value: displayValue(settingKey, val),
|
||||
inline: true,
|
||||
},
|
||||
{
|
||||
name: `🏷️ ${ctx.t(message, "responses.settings.shortcutDefaultField")}`,
|
||||
value: displayValue(settingKey, defaultVal),
|
||||
inline: true,
|
||||
}
|
||||
)
|
||||
.setFooter({
|
||||
text: ctx.t(message, "responses.settings.shortcutHintFooter", {
|
||||
prefix: ctx.handler?.getPrefix(guildId) ?? "%",
|
||||
shortcut: settingKey,
|
||||
}),
|
||||
});
|
||||
return message.reply({ embeds: [shortcutEmbed] });
|
||||
}
|
||||
|
||||
const rawValue = valueTokens.join(" ");
|
||||
|
||||
Reference in new issue
Block a user