diff --git a/commands/leave.mjs b/commands/leave.mjs index b78b60a..1d7f0ec 100644 --- a/commands/leave.mjs +++ b/commands/leave.mjs @@ -131,6 +131,17 @@ export async function run(msg, data) { ? new Set(raw.map(id => cleanId(id)).filter(Boolean)) : new Set([cleanId(raw)]); + // ── Snapshot all 247 auto channels in this guild BEFORE leaving ──────── + // When the bot leaves one channel, the gateway may send a guild-level + // disconnect that kills ALL voice connections in the guild (not just the + // target). By snapshotting beforehand, we can schedule rejoins for every + // 24/7 auto channel that was collateral-disconnected. + const other247AutoChannels = [...ch247].filter(id => { + if (id === activeChannelId || id === homeChannelId || id === targetChannelId) return false; + const mode = get247ChannelMode(set, id); + return mode === "auto"; + }); + if (ch247.has(activeChannelId) || ch247.has(homeChannelId)) { const matchChannel = ch247.has(homeChannelId) ? homeChannelId : ch247.has(activeChannelId) ? activeChannelId @@ -144,7 +155,7 @@ export async function run(msg, data) { player.destroy(); if (mode === "auto") { - msg.reply(embed(this.t(msg, "responses.leave.leftRejoin247", { channel: targetChannelId }))); + msg.reply(embed(this.t(msg, "responses.leave.leftRejoin247", { channel: targetChannelId, prefix: set?.get("prefix") ?? "%" }))); const leave247Delay = this.config?.timers?.leave247RejoinDelay ?? 5000; setTimeout(() => { if (this._spawnPlayer) { @@ -153,8 +164,68 @@ export async function run(msg, data) { ); } }, leave247Delay); + + // ── Rejoin other 24/7 auto channels that may have been disconnected ── + // If the gateway sent a guild-level leave, all other 24/7 auto channels + // also lost their connections. Schedule a rejoin for each one with a + // staggered delay to avoid overloading the global join queue. + if (other247AutoChannels.length > 0) { + const rejoinBaseDelay = leave247Delay; + const rejoinStagger = this.config?.timers?.rejoin247Delay ?? 3000; + for (let i = 0; i < other247AutoChannels.length; i++) { + const otherChannelId = other247AutoChannels[i]; + const otherPlayer = this.players.playerMap.get(otherChannelId); + // Only rejoin if the player is gone (was collateral-disconnected) + if (!otherPlayer || otherPlayer._destroyed) { + // Clean up the dead player from the map + if (otherPlayer) { + this.players.playerMap.delete(otherChannelId); + try { otherPlayer.destroy(); } catch (_) {} + } + const delay = rejoinBaseDelay + (i + 1) * rejoinStagger; + logger.recovery( + `[leave] Scheduling 247 auto-rejoin for collateral-disconnected channel ${otherChannelId} in ${delay}ms` + ); + setTimeout(() => { + if (this._spawnPlayer) { + this._spawnPlayer(guildId, otherChannelId).catch(e => + logger.warn("[leave] 247 collateral rejoin failed for", otherChannelId, e.message) + ); + } + }, delay); + } + } + } } else { - msg.reply(embed(this.t(msg, "responses.leave.left247On"))); + // Mode is "on" — bot left, won't rejoin automatically for this channel. + // But still check if other 24/7 auto channels need rejoining. + msg.reply(embed(this.t(msg, "responses.leave.left247On", { prefix: set?.get("prefix") ?? "%" }))); + + if (other247AutoChannels.length > 0) { + const rejoinDelay = this.config?.timers?.leave247RejoinDelay ?? 5000; + const rejoinStagger = this.config?.timers?.rejoin247Delay ?? 3000; + for (let i = 0; i < other247AutoChannels.length; i++) { + const otherChannelId = other247AutoChannels[i]; + const otherPlayer = this.players.playerMap.get(otherChannelId); + if (!otherPlayer || otherPlayer._destroyed) { + if (otherPlayer) { + this.players.playerMap.delete(otherChannelId); + try { otherPlayer.destroy(); } catch (_) {} + } + const delay = rejoinDelay + (i + 1) * rejoinStagger; + logger.recovery( + `[leave] Scheduling 247 auto-rejoin for collateral-disconnected channel ${otherChannelId} in ${delay}ms` + ); + setTimeout(() => { + if (this._spawnPlayer) { + this._spawnPlayer(guildId, otherChannelId).catch(e => + logger.warn("[leave] 247 collateral rejoin failed for", otherChannelId, e.message) + ); + } + }, delay); + } + } + } } } else { await this.leaveChannel(activeChannelId, guildId, msg); diff --git a/commands/settings.mjs b/commands/settings.mjs index d77af1e..6f7785e 100644 --- a/commands/settings.mjs +++ b/commands/settings.mjs @@ -182,7 +182,12 @@ function save247Channels(set, channels) { set.set("stay_247", arr.length > 0 ? arr : "none"); } -function modeLabel(mode) { +function modeLabel(mode, t, guildId) { + if (t && guildId) { + if (mode === "auto") return t(guildId, "responses.settings.247Panel.modeAuto"); + if (mode === "on") return t(guildId, "responses.settings.247Panel.modeOn"); + return t(guildId, "responses.settings.247Panel.modeOff"); + } return mode === "auto" ? "🔄 Auto" : mode === "on" ? "✅ On" : "❌ Off"; } @@ -206,26 +211,30 @@ function resolveChannelName(client, channelId) { /** * Build a simple 24/7 status panel. * Shows each saved channel with its mode — clean and minimal. + * @param {object} set - ServerSettings + * @param {object} ctx - Bot context (Remix instance) + * @param {object} message - Message object + * @param {Function} [t] - Locale translate function (guildId, key, data) + * @param {string} [guildId] - Guild ID for locale */ -function build247StatusPanel(set, ctx, message) { +function build247StatusPanel(set, ctx, message, t, guildId) { const channels = [...get247Channels(set)]; const prefix = (() => { try { return set.get("prefix") ?? "%"; } catch (_) { return "%"; } })(); + const locale = (key, data = {}) => t ? t(guildId, key, { ...data, prefix }) : key; if (channels.length === 0) { return richEmbed([ { - name: "Getting Started", - value: - `• \`${prefix}247 on\` — stay permanently\n` + - `• \`${prefix}247 auto\` — stay + auto-rejoin after disconnect`, + name: locale("responses.settings.247Panel.gettingStarted"), + value: locale("responses.settings.247Panel.gettingStartedValue"), inline: false, }, ], { - title: "♾️ 24/7 Mode", - description: "No voice channels saved.", - footer: `${prefix}247 on | ${prefix}247 auto | ${prefix}247 off`, + title: locale("responses.settings.247Panel.title"), + description: locale("responses.settings.247Panel.noChannelsSaved"), + footer: locale("responses.settings.247Panel.footer"), }); } @@ -234,38 +243,48 @@ function build247StatusPanel(set, ctx, message) { const mode = get247ChannelMode(set, chId); const chName = resolveChannelName(ctx.client, chId); const label = chName ? `${chName}` : ``; - return `${modeEmoji(mode)} ${label} <#${chId}> — ${modeLabel(mode)}`; + return `${modeEmoji(mode)} ${label} <#${chId}> — ${modeLabel(mode, t, guildId)}`; }); const onCount = channels.filter(id => get247ChannelMode(set, id) === "on").length; const autoCount = channels.filter(id => get247ChannelMode(set, id) === "auto").length; const summaryParts = []; - if (onCount > 0) summaryParts.push(`✅ ${onCount} on`); - if (autoCount > 0) summaryParts.push(`🔄 ${autoCount} auto`); + if (onCount > 0) summaryParts.push(locale("responses.settings.247Panel.summaryOn", { count: onCount })); + if (autoCount > 0) summaryParts.push(locale("responses.settings.247Panel.summaryAuto", { count: autoCount })); + + const channelsKey = channels.length === 1 + ? "responses.settings.247Panel.channelsSaved_one" + : "responses.settings.247Panel.channelsSaved_other"; return richEmbed([{ - name: `${channels.length} channel${channels.length !== 1 ? "s" : ""} saved`, + name: locale(channelsKey, { count: channels.length }), value: lines.join("\n"), inline: false, }], { - title: "♾️ 24/7 Mode", + title: locale("responses.settings.247Panel.title"), description: summaryParts.join(" · "), - footer: `${prefix}247 on | ${prefix}247 auto | ${prefix}247 off`, + footer: locale("responses.settings.247Panel.footer"), }); } /** * Build a simple embed for the %247 on/auto confirmation. + * @param {object} set - ServerSettings + * @param {string} channelId - Clean channel ID + * @param {string} mode - "on" | "auto" + * @param {boolean} joined - Whether the bot joined + * @param {object} ctx - Bot context + * @param {string} guildId - Guild ID + * @param {Function} [t] - Locale translate function */ -function build247EnabledPanel(set, channelId, mode, joined, ctx, guildId) { +function build247EnabledPanel(set, channelId, mode, joined, ctx, guildId, t) { const channels = [...get247Channels(set)]; - const modeStr = mode === "auto" ? "🔄 Auto" : "✅ On"; + const modeStr = modeLabel(mode, t, guildId); const prefix = (() => { try { return set.get("prefix") ?? "%"; } catch (_) { return "%"; } })(); + const locale = (key, data = {}) => t ? t(guildId, key, { ...data, prefix }) : key; const chName = resolveChannelName(ctx.client, channelId); - // Always include <#channelId> so the description is unambiguous - // (channel names like "2" can read as counts: "2 set to Auto — 2 channels saved") const label = chName ? `**${chName}** <#${channelId}>` : `<#${channelId}>`; // Build simple list of all saved channels @@ -273,24 +292,23 @@ function build247EnabledPanel(set, channelId, mode, joined, ctx, guildId) { const m = get247ChannelMode(set, id); const n = resolveChannelName(ctx.client, id); const l = n ? `${n}` : `<#${id}>`; - const marker = id === channelId ? " ←" : ""; - return `${modeEmoji(m)} ${l} <#${id}> — ${modeLabel(m)}${marker}`; + const marker = id === channelId ? locale("responses.settings.247Panel.currentMarker") : ""; + return `${modeEmoji(m)} ${l} <#${id}> — ${modeLabel(m, t, guildId)}${marker}`; }); - const summary = channels.length === 1 - ? "1 channel saved" - : `${channels.length} channels saved`; + const channelsKey = channels.length === 1 + ? "responses.settings.247Panel.channelsSaved_one" + : "responses.settings.247Panel.channelsSaved_other"; + const summary = locale(channelsKey, { count: channels.length }); - // Use the mode's color for the embed. EmbedBuilder doesn't have addField, - // so we build the base embed, .toJSON() it, then attach fields as a raw array. const b = new EmbedBuilder(); b.setColor(modeColor(mode)); - b.setTitle(`♾️ 24/7 ${modeStr}`); - b.setDescription(`${label} → **${modeStr}** — ${summary}`); - b.setFooter({ text: `${prefix}247 off to disable for a channel` }); + b.setTitle(locale("responses.settings.247Panel.enabledTitle", { mode: modeStr })); + b.setDescription(locale("responses.settings.247Panel.enabledDescription", { channel: label, mode: modeStr, summary })); + b.setFooter({ text: locale("responses.settings.247Panel.enabledFooter") }); const raw = b.toJSON(); raw.fields = [{ - name: "Saved Channels", + name: locale("responses.settings.247Panel.savedChannels"), value: lines.join("\n"), inline: false, }]; @@ -299,63 +317,76 @@ function build247EnabledPanel(set, channelId, mode, joined, ctx, guildId) { /** * Build a simple embed for the %247 off confirmation. + * @param {object} set - ServerSettings + * @param {string} channelId - Clean channel ID + * @param {string} guildId - Guild ID + * @param {Function} [t] - Locale translate function */ -function build247DisabledPanel(set, channelId, guildId) { +function build247DisabledPanel(set, channelId, guildId, t) { const channels = [...get247Channels(set)]; const prefix = (() => { try { return set.get("prefix") ?? "%"; } catch (_) { return "%"; } })(); + const locale = (key, data = {}) => t ? t(guildId, key, { ...data, prefix }) : key; if (channels.length === 0) { return richEmbed([{ - name: "No Channels Saved", - value: "All 24/7 channels removed. Bot will leave voice after inactivity.", + name: locale("responses.settings.247Panel.noChannelsSavedField"), + value: locale("responses.settings.247Panel.allChannelsRemoved"), inline: false, }], { - title: "♾️ 24/7 Disabled", - footer: `${prefix}247 on | ${prefix}247 auto to re-enable`, + title: locale("responses.settings.247Panel.disabledTitle"), + footer: locale("responses.settings.247Panel.reenableFooter"), }); } const lines = channels.map(id => { const m = get247ChannelMode(set, id); - const n = resolveChannelName(null, id); // no client needed for fallback const l = `<#${id}>`; - return `${modeEmoji(m)} ${l} — ${modeLabel(m)}`; + return `${modeEmoji(m)} ${l} — ${modeLabel(m, t, guildId)}`; }); + const channelsKey = channels.length === 1 + ? "responses.settings.247Panel.channelsRemaining_one" + : "responses.settings.247Panel.channelsRemaining_other"; + return richEmbed([{ - name: `${channels.length} channel${channels.length !== 1 ? "s" : ""} remaining`, + name: locale(channelsKey, { count: channels.length }), value: lines.join("\n"), inline: false, }], { - title: "♾️ 24/7 Disabled", - description: `<#${channelId}> removed`, - footer: `${prefix}247 on | ${prefix}247 auto to re-enable`, + title: locale("responses.settings.247Panel.disabledTitle"), + description: locale("responses.settings.247Panel.channelRemoved", { channel: channelId }), + footer: locale("responses.settings.247Panel.reenableFooter"), }); } -function format247Status(set) { +function format247Status(set, t, guildId) { const channels = get247Channels(set); - if (channels.size === 0) return "❌ Disabled"; + if (channels.size === 0) return t ? t(guildId, "responses.settings.247Panel.modeOff") : "❌ Disabled"; if (channels.size === 1) { const chId = [...channels][0]; const mode = get247ChannelMode(set, chId); - return `${modeLabel(mode)} — <#${chId}>`; + return `${modeLabel(mode, t, guildId)} — <#${chId}>`; } const parts = [...channels].map(id => { const mode = get247ChannelMode(set, id); - return `<#${id}> (${modeLabel(mode)})`; + return `<#${id}> (${modeLabel(mode, t, guildId)})`; }); return `${channels.size} channels: ${parts.join(", ")}`; } -function format247Summary(set) { +function format247Summary(set, t, guildId) { const channels = [...get247Channels(set)]; + const prefix = (() => { + try { return set.get("prefix") ?? "%"; } catch (_) { return "%"; } + })(); + const locale = (key, data = {}) => t ? t(guildId, key, { ...data, prefix }) : key; + if (channels.length === 0) { return [ - "**24/7 Mode**", - "Status: ❌ Disabled", + `**24/7 Mode**`, + `Status: ${locale("responses.settings.247Panel.modeOff")}`, "Saved channels: none" ].join("\n"); } @@ -363,7 +394,7 @@ function format247Summary(set) { const lines = ["**24/7 Mode**"]; for (const id of channels) { const mode = get247ChannelMode(set, id); - lines.push(`• <#${id}> — ${modeLabel(mode)}`); + lines.push(`• <#${id}> — ${modeLabel(mode, t, guildId)}`); } return lines.join("\n"); } @@ -393,7 +424,7 @@ async function handle247(ctx, message, value) { if (!["off", "on", "auto"].includes(resolved)) { return message.reply(embed( - ctx.t(message, "responses.settings.invalid247", { value }) + ctx.t(message, "responses.settings.invalid247", { value, prefix: set.get("prefix") ?? "%" }) )); } @@ -422,7 +453,8 @@ async function handle247(ctx, message, value) { await player.leave().catch(() => {}); player.destroy(); } - return message.reply(build247DisabledPanel(set, id, guildId)); + const t247 = ctx.locale?.translate?.bind(ctx.locale); + return message.reply(build247DisabledPanel(set, id, guildId, t247)); } // Not in a channel — disable all for this guild @@ -442,14 +474,16 @@ async function handle247(ctx, message, value) { const prefix = (() => { try { return set.get("prefix") ?? "%"; } catch (_) { return "%"; } })(); + const t247 = ctx.locale?.translate?.bind(ctx.locale); + const loc = (key, data = {}) => t247 ? t247(guildId, key, { ...data, prefix }) : key; return message.reply(richEmbed([{ - name: "❌ All Channels", - value: "24/7 mode **disabled** for all channels in this server.\nThe bot will leave voice after inactivity.", + name: loc("responses.settings.247Panel.allChannelsLabel"), + value: loc("responses.settings.247Panel.allChannelsDisabled"), inline: false, }], { - title: "♾️ 24/7 Disabled", - description: "No channels saved", - footer: `${prefix}247 on | ${prefix}247 auto to re-enable`, + title: loc("responses.settings.247Panel.disabledTitle"), + description: loc("responses.settings.247Panel.noChannelsSavedShort"), + footer: loc("responses.settings.247Panel.reenableFooter"), })); } @@ -459,7 +493,7 @@ async function handle247(ctx, message, value) { const userChannelId = ctx.players.checkVoiceChannels(message); if (!userChannelId) { return message.reply(embed( - ctx.t(message, "responses.settings.noVoice247", { mode: resolved }) + ctx.t(message, "responses.settings.noVoice247", { mode: resolved, prefix: set.get("prefix") ?? "%" }) )); } @@ -532,18 +566,22 @@ async function handle247(ctx, message, value) { ); if (playerExists) { - return message.reply(build247EnabledPanel(set, id, resolved, false, ctx, guildId)); + const t247 = ctx.locale?.translate?.bind(ctx.locale); + return message.reply(build247EnabledPanel(set, id, resolved, false, ctx, guildId, t247)); } try { await ctx._spawnPlayer(guildId, id); - return message.reply(build247EnabledPanel(set, id, resolved, true, ctx, guildId)); + const t247 = ctx.locale?.translate?.bind(ctx.locale); + return message.reply(build247EnabledPanel(set, id, resolved, true, ctx, guildId, t247)); } catch (e) { const prefix = (() => { try { return set.get("prefix") ?? "%"; } catch (_) { return "%"; } })(); + const t247 = ctx.locale?.translate?.bind(ctx.locale); + const loc = (key, data = {}) => t247 ? t247(guildId, key, { ...data, prefix }) : key; return message.reply(embed( - `⚠️ 24/7 ${modeLabel(resolved)} saved, but failed to join <#${id}>.\nError: \`${e.message}\`\n\nTry \`${prefix}join\` or \`${prefix}play\` later.` + loc("responses.settings.247Panel.joinFailed", { mode: modeLabel(resolved, t247, guildId), channel: id, error: e.message }) )); } } @@ -626,7 +664,8 @@ async function handleShortcut(ctx, message, settingKey, valueTokens) { // GET (no value provided) — show rich 24/7 panel if (valueTokens.length === 0) { if (settingKey === "stay_247") { - return message.reply(build247StatusPanel(set, ctx, message)); + const t247 = ctx.locale?.translate?.bind(ctx.locale); + return message.reply(build247StatusPanel(set, ctx, message, t247, getGuildId(message))); } const val = set.get(settingKey); return message.reply(embed(`\`${settingKey}\` → ${displayValue(settingKey, val)}`)); @@ -797,7 +836,8 @@ export async function run(message, data) { if (cmd === "getSettings") { if (settingKey) { if (settingKey === "stay_247") { - return message.reply(build247StatusPanel(set, this, message)); + const t247 = this.locale?.translate?.bind(this.locale); + return message.reply(build247StatusPanel(set, this, message, t247, getGuildId(message))); } const val = set.get(settingKey); const description = this.settingsMgr.descriptions?.[settingKey]; @@ -820,7 +860,7 @@ export async function run(message, data) { .filter(([k]) => k !== "stay_247_mode") // surfaced inline with stay_247 .map(([k]) => { if (k === "stay_247") { - return `• **24/7 mode** — ${format247Status(set)}`; + return `• **24/7 mode** — ${format247Status(set, this.locale?.translate?.bind(this.locale), getGuildId(message))}`; } return `• **${prettifySettingLabel(k)}** — ${displayValue(k, d[k])}`; }); @@ -883,7 +923,7 @@ export async function run(message, data) { return message.reply(embed( `**⚙️ Setting: \`${settingKey}\`**\n\n` + `${description}${extra}\n\n` + - `**Current value:** ${settingKey === "stay_247" ? format247Status(set) : displayValue(settingKey, currentVal)}\n` + + `**Current value:** ${settingKey === "stay_247" ? format247Status(set, this.locale?.translate?.bind(this.locale), getGuildId(message)) : displayValue(settingKey, currentVal)}\n` + `**Default:** ${displayValue(settingKey, defaultVal)}`, { title: `⚙️ ${settingKey}` } )); diff --git a/index.mjs b/index.mjs index f0160b1..c21689f 100644 --- a/index.mjs +++ b/index.mjs @@ -676,6 +676,7 @@ export class Remix { async leaveChannel(channelId, guildId, message, force = false) { const cleanId = String(channelId).replace(/\D/g, ""); + const cleanGuildId = String(guildId).replace(/\D/g, ""); const set = this.settingsMgr.getServer(guildId); const raw = set.get("stay_247"); @@ -691,15 +692,26 @@ export class Remix { if (channels.has(cleanId) && !force) { if (channelMode === "auto") { if (message) { + const prefix = (() => { try { return set.get("prefix") ?? "%"; } catch (_) { return "%"; } })(); + const guildIdForLocale = message?.channel?.channel?.guildId ?? message?.guildId ?? cleanGuildId; message.replyEmbed( - `⚠️ 24/7 mode is enabled (auto) — I'll rejoin <#${cleanId}> in a few seconds.\n` + - `To permanently remove me, disable 24/7 mode first: \`%247 off\`` + this.locale.translate(guildIdForLocale, "responses.leave.autoRejoinHint", { + channel: cleanId, + prefix + }) ); } return false; } } + // ── Snapshot other 247 auto channels before leaving ──────────────── + const other247AutoChannels = [...channels].filter(id => { + if (id === cleanId) return false; + const mode = get247ChannelMode(set, id); + return mode === "auto"; + }); + if (channels.has(cleanId)) { channels.delete(cleanId); set.set("stay_247", channels.size > 0 ? [...channels] : "none"); @@ -716,7 +728,43 @@ export class Remix { player.destroy(); } - if (message) message.replyEmbed("✅ Successfully Left"); + if (message) { + const guildIdForLocale = message?.channel?.channel?.guildId ?? message?.guildId ?? cleanGuildId; + message.replyEmbed(this.locale.translate(guildIdForLocale, "responses._common.successfullyLeft")); + } + + // ── Rejoin other 24/7 auto channels that may have been collateral-disconnected ── + // When the gateway sends a guild-level leave (because leaveChannel() API + // was unavailable), ALL voice connections in the guild are dropped. We + // must schedule rejoins for every other 24/7 auto channel that lost its + // player as a side effect. + if (other247AutoChannels.length > 0) { + const rejoinBaseDelay = this.T?.leave247RejoinDelay ?? 5000; + const rejoinStagger = this.T?.rejoin247Delay ?? 3000; + for (let i = 0; i < other247AutoChannels.length; i++) { + const otherChannelId = other247AutoChannels[i]; + const otherPlayer = this.players.playerMap.get(otherChannelId); + // Only rejoin if the player is gone (was collateral-disconnected) + if (!otherPlayer || otherPlayer._destroyed) { + if (otherPlayer) { + this.players.playerMap.delete(otherChannelId); + try { otherPlayer.destroy(); } catch (_) {} + } + const delay = rejoinBaseDelay + (i + 1) * rejoinStagger; + logger.recovery( + `[leaveChannel] Scheduling 247 auto-rejoin for collateral-disconnected channel ${otherChannelId} in ${delay}ms` + ); + setTimeout(() => { + if (this._spawnPlayer) { + this._spawnPlayer(guildId, otherChannelId).catch(e => + logger.warn("[leaveChannel] 247 collateral rejoin failed for", otherChannelId, e.message) + ); + } + }, delay); + } + } + } + return true; } diff --git a/src/RecoveryManager.mjs b/src/RecoveryManager.mjs index f4649f9..2d6ebe3 100644 --- a/src/RecoveryManager.mjs +++ b/src/RecoveryManager.mjs @@ -325,13 +325,13 @@ export class RecoveryManager { (c.permissionsFor?.(remix.client.user)?.has?.("SendMessages") ?? true) ); if (ch) { + const desc = remix.locale?.translate(guildId, "responses.join.autoLeaveInactive247", { + channel: `<#${activeChannelId}>`, + prefix + }) ?? `Left channel <#${activeChannelId}> because of inactivity.\nIf you want me to stay in voice, use \`${prefix}247 on\` or \`${prefix}247 auto\`\nUse \`${prefix}247\` to view and manage all saved channels.`; const embed = new EmbedBuilder() .setColor(getGlobalColor()) - .setDescription( - `Left channel <#${activeChannelId}> because of inactivity.\n` + - `If you want me to stay in voice, use \`${prefix}247 on\` or \`${prefix}247 auto\`\n` + - `Use \`${prefix}247\` to view and manage all saved channels.` - ) + .setDescription(desc) .toJSON(); if (typeof ch?.send === "function") ch.send({ embeds: [embed] }).catch(() => {}); } diff --git a/src/constants/FluxerRevoice.mjs b/src/constants/FluxerRevoice.mjs index dd28880..07283e0 100644 --- a/src/constants/FluxerRevoice.mjs +++ b/src/constants/FluxerRevoice.mjs @@ -267,7 +267,14 @@ export class FluxerRevoice extends EventEmitter { * VOICE_SERVER_UPDATE on the next joinVoiceChannel() call, causing the * rejoin to hang or fail. * + * IMPORTANT: We try channel-specific leave (leaveChannel) FIRST because + * vm.leave(guildId) disconnects ALL voice channels in that guild, which + * is catastrophic for multi-voice setups where the bot is in multiple + * channels with 24/7 enabled. Only fall back to guild-level leave if + * the channel-specific API is unavailable. + * * @param {string} channelId — The channel ID to leave + * @param {string} [guildId] — The guild ID (for fallback) */ _leaveGateway(channelId, guildId = null) { try { @@ -276,28 +283,32 @@ export class FluxerRevoice extends EventEmitter { const guildForLeave = guildId ?? this._resolveGuildForChannel(channelId); - // ── Method 1: Use vm.leave(guildId) — the recommended API ────────── - // The VoiceManager's leave() method sends a VOICE_STATE_UPDATE with - // channel_id=null for the specified guild, which is the correct way - // to leave voice on Fluxer. This avoids the unscoped leave problem. - if (guildForLeave && typeof vm.leave === "function") { - try { - vm.leave(guildForLeave); - logger.player(`[FluxerRevoice] Sent gateway leave via vm.leave() for guild ${guildForLeave}`); - return; - } catch (e) { - logger.warn(`[FluxerRevoice] vm.leave() failed for guild ${guildForLeave}: ${e?.message}`); - } - } - - // ── Method 2: Use vm.leaveChannel(channelId) ────────────────────── + // ── Method 1 (PREFERRED): Use vm.leaveChannel(channelId) ────────── + // This sends a channel-specific VOICE_STATE_UPDATE that only leaves + // the specified channel, preserving all other voice connections in + // the same guild. This is critical for multi-voice / 24/7 setups + // where the bot may be in several channels simultaneously. if (typeof vm.leaveChannel === "function") { try { vm.leaveChannel(channelId); - logger.player(`[FluxerRevoice] Sent gateway leave via vm.leaveChannel() for channel ${channelId}`); + logger.player(`[FluxerRevoice] Sent channel-specific gateway leave via vm.leaveChannel() for channel ${channelId}`); return; } catch (e) { - logger.warn(`[FluxerRevoice] vm.leaveChannel() failed for channel ${channelId}: ${e?.message}`); + logger.warn(`[FluxerRevoice] vm.leaveChannel() failed for channel ${channelId}: ${e?.message} — falling back`); + } + } + + // ── Method 2: Use vm.leave(guildId) — guild-level fallback ───────── + // WARNING: This disconnects ALL voice channels in the guild, not just + // the target channel. Only used when leaveChannel() is unavailable. + // The caller must handle rejoining other 24/7 channels if needed. + if (guildForLeave && typeof vm.leave === "function") { + try { + vm.leave(guildForLeave); + logger.player(`[FluxerRevoice] Sent guild-level gateway leave via vm.leave() for guild ${guildForLeave} (leaveChannel unavailable — other channels may be disconnected)`); + return; + } catch (e) { + logger.warn(`[FluxerRevoice] vm.leave() failed for guild ${guildForLeave}: ${e?.message}`); } } diff --git a/storage/locales/bot/ar-SA.json b/storage/locales/bot/ar-SA.json index 498c59a..f1d3ca1 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -248,8 +248,9 @@ "specifyChannel": "⚠️ أنت لست في قناة صوتية. أنا أعزف في:\n{{channels}}\n\nاستخدم `{{prefix}}leave <#channel>` لمغادرة قناة محددة.", "noPlayerInChannel": "⚠️ أنا لا أعزف في <#{{channel}}>. أنا في:\n{{channels}}", "playerNotInit": "المشغّل غير مهيأ.", - "leftRejoin247": "✅ تم المغادرة بنجاح — سأعيد الانضمام إلى <#{{channel}}> خلال 5 ثوانٍ.\nلتعطيل وضع 24/7 بشكل دائم، استخدم `%247 off`.", - "left247On": "✅ تم المغادرة بنجاح.\nℹ️ وضع 24/7 **مفعّل** — لن يعود البوت تلقائياً. استخدم `%play` لإعادته، أو `%247 off` لتعطيله بالكامل." + "leftRejoin247": "✅ تم المغادرة بنجاح — سأعيد الانضمام إلى <#{{channel}}> خلال بضع ثوانٍ.\nلتعطيل وضع 24/7 بشكل دائم، استخدم `{{prefix}}247 off`.", + "left247On": "✅ تم المغادرة بنجاح.\nوضع 24/7 **مفعّل** — لن يعود البوت تلقائياً. استخدم `{{prefix}}play` لإعادته، أو `{{prefix}}247 off` لتعطيله بالكامل.\nاستخدم `{{prefix}}247` لعرض جميع القنوات المحفوظة.", + "autoRejoinHint": "⚠️ وضع 24/7 مفعّل (تلقائي) — سأعيد الانضمام إلى <#{{channel}}> خلال بضع ثوانٍ.\nلتتمكن من إزالتي بشكل دائم، عطّل وضع 24/7 أولاً: `{{prefix}}247 off`" }, "list": { "empty": "📭 قائمة الانتظار فارغة. استخدم `{{prefix}}play` لإضافة أغاني!", @@ -421,15 +422,15 @@ "invalidLocale": "❌ `{{locale}}` ليست لغة مدعومة.\nاللغات المتاحة: {{locales}}", "prefixLength": "❌ يجب أن يكون البادئة بين **1** و **5** أحرف.", "prefixSpaces": "❌ لا يمكن أن تحتوي البادئة على مسافات.", - "invalid247": "❌ Invalid value `{{value}}` for 24/7 mode.\n\n**Valid options:**\n• `on` — Bot stays connected permanently. Won't rejoin after `%leave`.\n• `auto` — Bot stays connected and auto-rejoins after `%leave` or disconnect.\n• `off` — Bot leaves after inactivity.\n\n💡 Each channel has its own mode. Use `%247` to see all saved channels.", + "invalid247": "❌ قيمة غير صالحة `{{value}}` لوضع 24/7.\n\n**الخيارات الصالحة:**\n• `on` — البقاء متصلاً بشكل دائم، بدون إعادة انضمام تلقائية بعد `{{prefix}}leave`\n• `auto` — البقاء متصلاً وإعادة الانضمام تلقائياً بعد `{{prefix}}leave` أو قطع الاتصال\n• `off` — المغادرة بعد عدم النشاط\n\nلكل قناة وضعها الخاص. استخدم `{{prefix}}247` لرؤية جميع القنوات المحفوظة.", "noServer": "❌ لم أتمكن من تحديد خادمك.", - "noVoice247": "❌ أنت لست في قناة صوتية. انضم إلى واحدة أولاً، ثم شغّل `%247 {{mode}}` مرة أخرى.", - "247Disabled": "✅ وضع 24/7 **معطّل** لـ <#{{channel}}. غادر البوت.", - "247DisabledAll": "✅ وضع 24/7 **معطّل** لجميع القنوات في هذا الخادم.", - "247Set": "✅ تم تعيين وضع 24/7 إلى **{{mode}}** لـ <#{{channel}}>.\n{{summary}}", - "247Joined": "✅ تم تعيين وضع 24/7 إلى **{{mode}}** لـ <#{{channel}}>. انضم البوت!\n{{summary}}", - "247JoinFailed": "✅ تم حفظ وضع 24/7 لـ <#{{channel}}>، لكن فشل الانضمام: {{error}}\n{{summary}}", - "247Status": "♾️ **24/7 Mode**: {{status}}\n\nUse `%247 on` or `%247 auto` to enable — `%247 off` to disable.", + "noVoice247": "❌ أنت لست في قناة صوتية. انضم إلى واحدة أولاً، ثم شغّل `{{prefix}}247 {{mode}}` مرة أخرى.\n\n💡 لكل قناة إعداد وضع 24/7 الخاص بها.", + "247Disabled": "✅ وضع 24/7 **معطّل** لـ <#{{channel}}>. غادر البوت.\n💡 استخدم `{{prefix}}247` لرؤية القنوات المحفوظة المتبقية.", + "247DisabledAll": "✅ وضع 24/7 **معطّل** لجميع القنوات في هذا الخادم.\nسيغادر البوت الصوت بعد عدم النشاط.", + "247Set": "✅ تم تعيين وضع 24/7 إلى **{{mode}}** لـ <#{{channel}}>.\n{{summary}}\n\n💡 استخدم `{{prefix}}247` لعرض جميع القنوات المحفوظة.", + "247Joined": "✅ تم تعيين وضع 24/7 إلى **{{mode}}** لـ <#{{channel}}>. انضم البوت!\n{{summary}}\n\n💡 استخدم `{{prefix}}247` لعرض جميع القنوات المحفوظة.", + "247JoinFailed": "⚠️ تم حفظ وضع 24/7 لـ <#{{channel}}>، لكن فشل الانضمام: {{error}}\n{{summary}}\n\nجرّب `{{prefix}}join` أو `{{prefix}}play` لاحقاً، أو `{{prefix}}247 off` للإزالة.", + "247Status": "♾️ **وضع 24/7**: {{status}}\n\nاستخدم `{{prefix}}247 on` أو `{{prefix}}247 auto` للتفعيل — `{{prefix}}247 off` للتعطيل.", "helpTitle": "⚙️ مساعدة الإعدادات", "helpAvailable": "**الإعدادات المتاحة:** {{settings}}", "helpSubcommands": "**الأوامر الفرعية:**\n• `{{prefix}}settings get` — عرض جميع القيم الحالية\n• `{{prefix}}settings get <إعداد>` — عرض إعداد واحد\n• `{{prefix}}settings set <إعداد> <قيمة>` — تغيير إعداد\n• `{{prefix}}settings reset <إعداد>` — استعادة القيمة الافتراضية\n• `{{prefix}}settings help <إعداد>` — وصف إعداد", @@ -463,7 +464,37 @@ "modeOff": "❌ إيقاف", "channelsLabel": "{{count}} قناة", "channelsLabelPlural": "{{count}} قنوات", - "thisServer": "هذا الخادم" + "thisServer": "هذا الخادم", + "247Panel": { + "title": "♾️ وضع 24/7", + "noChannelsSaved": "لا توجد قنوات صوتية محفوظة.", + "gettingStarted": "البدء", + "gettingStartedValue": "• `{{prefix}}247 on` — البقاء بشكل دائم\n• `{{prefix}}247 auto` — البقاء + إعادة الانضمام تلقائياً بعد قطع الاتصال", + "footer": "{{prefix}}247 on | {{prefix}}247 auto | {{prefix}}247 off", + "channelsSaved_one": "قناة {{count}} محفوظة", + "channelsSaved_other": "{{count}} قنوات محفوظة", + "summaryOn": "✅ {{count}} مفعّل", + "summaryAuto": "🔄 {{count}} تلقائي", + "modeOn": "✅ مفعّل", + "modeAuto": "🔄 تلقائي", + "modeOff": "❌ معطّل", + "enabledTitle": "♾️ 24/7 {{mode}}", + "enabledDescription": "{{channel}} ← **{{mode}}** — {{summary}}", + "enabledFooter": "{{prefix}}247 off لتعطيل قناة", + "savedChannels": "القنوات المحفوظة", + "currentMarker": " ←", + "disabledTitle": "♾️ 24/7 معطّل", + "noChannelsSavedField": "لا توجد قنوات محفوظة", + "allChannelsRemoved": "تمت إزالة جميع قنوات 24/7. سيغادر البوت الصوت بعد عدم النشاط.", + "channelRemoved": "<#{{channel}}> تمت إزالتها", + "channelsRemaining_one": "قناة {{count}} متبقية", + "channelsRemaining_other": "{{count}} قنوات متبقية", + "reenableFooter": "{{prefix}}247 on | {{prefix}}247 auto لإعادة التفعيل", + "allChannelsLabel": "❌ جميع القنوات", + "allChannelsDisabled": "وضع 24/7 **معطّل** لجميع القنوات في هذا الخادم.\nسيغادر البوت الصوت بعد عدم النشاط.", + "noChannelsSavedShort": "لا توجد قنوات محفوظة", + "joinFailed": "⚠️ تم حفظ 24/7 {{mode}}، لكن فشل الانضمام إلى <#{{channel}}>.\nخطأ: `{{error}}`\n\nجرّب `{{prefix}}join` أو `{{prefix}}play` لاحقاً." + } }, "shuffle": { "emptyQueue": "لا يوجد شيء لخلطه في قائمة الانتظار.", diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index 2d8c42f..27bb395 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -248,8 +248,9 @@ "specifyChannel": "⚠️ تۆ لە کەناڵێکی دەنگیدا نیت. من پەخش دەکەم لە:\n{{channels}}\n\n`{{prefix}}leave <#channel>` بەکاربهێنە بۆ جێهێشتنی کەناڵێکی دیاریکراو.", "noPlayerInChannel": "⚠️ من پەخش ناکەم لە <#{{channel}}>. من لە:\n{{channels}}", "playerNotInit": "پەخشکەرەکە ئامادە نەکراوە.", - "leftRejoin247": "✅ بە سەرکەوتوویی دەرچوو — دووبارە بەشداری <#{{channel}}> دەکەم لە 5 چرکەدا.\nبۆ ناچالاککردنی دۆخی 24/7 بەهەمیشەیی، `%247 off` بەکاربهێنە.", - "left247On": "✅ بە سەرکەوتوویی دەرچوو.\nℹ️ دۆخی 24/7 **چالاکە** — بۆتەکە دووبارە خۆی ناچێتەوە. `%play` بەکاربهێنە بۆ گەڕاندنی، یان `%247 off` بۆ ناچالاککردنی تەواو." + "leftRejoin247": "✅ بە سەرکەوتوویی دەرچوو — دووبارە بەشداری <#{{channel}}> دەکەم لە چەند چرکەیەکدا.\nبۆ ناچالاککردنی دۆخی 24/7 بەهەمیشەیی، `{{prefix}}247 off` بەکاربهێنە.", + "left247On": "✅ بە سەرکەوتوویی دەرچوو.\nدۆخی 24/7 **چالاکە** — بۆتەکە دووبارە خۆی ناچێتەوە. `{{prefix}}play` بەکاربهێنە بۆ گەڕاندنی، یان `{{prefix}}247 off` بۆ ناچالاککردنی تەواو.\n`{{prefix}}247` بەکاربهێنە بۆ بینینی هەموو کەناڵە پاشەکەوتکراوەکان.", + "autoRejoinHint": "⚠️ دۆخی 24/7 چالاکە (خۆکار) — دووبارە بەشداری <#{{channel}}> دەکەم لە چەند چرکەیەکدا.\nبۆ لابردنی من بەهەمیشەیی، سەرەتا دۆخی 24/7 ناچالاک بکە: `{{prefix}}247 off`" }, "list": { "empty": "📭 ڕیزبەندییەکە بەتاڵە. `{{prefix}}play` بەکاربهێنە بۆ زیادکردنی گۆرانی!", @@ -421,15 +422,15 @@ "invalidLocale": "❌ `{{locale}}` زمانێکی پشتگیرینەکراو نییە.\nزمانە بەردەستەکان: {{locales}}", "prefixLength": "❌ پێشگر دەبێت لەنێوان **1** و **5** پیت بێت.", "prefixSpaces": "❌ پێشگر ناتوانێت بۆشایی هەبێت.", - "invalid247": "❌ Invalid value `{{value}}` for 24/7 mode.\n\n**Valid options:**\n• `on` — Bot stays connected permanently. Won't rejoin after `%leave`.\n• `auto` — Bot stays connected and auto-rejoins after `%leave` or disconnect.\n• `off` — Bot leaves after inactivity.\n\n💡 Each channel has its own mode. Use `%247` to see all saved channels.", + "invalid247": "❌ بەهای نادروست `{{value}}` بۆ دۆخی 24/7.\n\n**هەڵبژاردنە دروستەکان:**\n• `on` — بەهەمیشەیی پەیوەست دەبێت، دووبارە بەشداری ناکاتەوە لە دوای `{{prefix}}leave`\n• `auto` — پەیوەست دەبێت و دووبارە خۆکارانە بەشداری دەکاتەوە لە دوای `{{prefix}}leave` یان پچڕانی پەیوەندی\n• `off` — دەرچوون لە دوای بێچالاکبوون\n\nهەر کەناڵێک دۆخی تایبەتی خۆی هەیە. `{{prefix}}247` بەکاربهێنە بۆ بینینی هەموو کەناڵە پاشەکەوتکراوەکان.", "noServer": "❌ ناتوانرێت سێرڤەرەکەت پشتڕاست بکرێتەوە.", - "noVoice247": "❌ تۆ لە کەناڵێکی دەنگیدا نیت. سەرەتا بەشداری یەکێک بکە، پاشان `%247 {{mode}}` بەکاربهێنە.", - "247Disabled": "✅ دۆخی 24/7 **ناچالاک کرا** بۆ <#{{channel}}>. بۆت دەرچوو.", - "247DisabledAll": "✅ دۆخی 24/7 **ناچالاک کرا** بۆ هەموو کەناڵەکان لەم سێرڤەرەدا.", - "247Set": "✅ دۆخی 24/7 دانرا بۆ **{{mode}}** بۆ <#{{channel}}>.\n{{summary}}", - "247Joined": "✅ دۆخی 24/7 دانرا بۆ **{{mode}}** بۆ <#{{channel}}>. بۆت بەشداری کرد!\n{{summary}}", - "247JoinFailed": "✅ دۆخی 24/7 پاشەکەوت کرا بۆ <#{{channel}}>، بەڵام بەشداریکردن سەرکەوتوو نەبوو: {{error}}\n{{summary}}", - "247Status": "♾️ **24/7 Mode**: {{status}}\n\nUse `%247 on` or `%247 auto` to enable — `%247 off` to disable.", + "noVoice247": "❌ تۆ لە کەناڵێکی دەنگیدا نیت. سەرەتا بەشداری یەکێک بکە، پاشان `{{prefix}}247 {{mode}}` بەکاربهێنە.\n\n💡 هەر کەناڵێک ڕێکخستنی دۆخی 24/7 تایبەتی خۆی هەیە.", + "247Disabled": "✅ دۆخی 24/7 **ناچالاک کرا** بۆ <#{{channel}}>. بۆت دەرچوو.\n💡 `{{prefix}}247` بەکاربهێنە بۆ بینینی کەناڵە پاشەکەوتکراوەکانی تر.", + "247DisabledAll": "✅ دۆخی 24/7 **ناچالاک کرا** بۆ هەموو کەناڵەکان لەم سێرڤەرەدا.\nبۆت لە دوای بێچالاکبوون دەنگ جێدەهێڵێت.", + "247Set": "✅ دۆخی 24/7 دانرا بۆ **{{mode}}** بۆ <#{{channel}}>.\n{{summary}}\n\n💡 `{{prefix}}247` بەکاربهێنە بۆ بینینی هەموو کەناڵە پاشەکەوتکراوەکان.", + "247Joined": "✅ دۆخی 24/7 دانرا بۆ **{{mode}}** بۆ <#{{channel}}>. بۆت بەشداری کرد!\n{{summary}}\n\n💡 `{{prefix}}247` بەکاربهێنە بۆ بینینی هەموو کەناڵە پاشەکەوتکراوەکان.", + "247JoinFailed": "⚠️ دۆخی 24/7 پاشەکەوت کرا بۆ <#{{channel}}>، بەڵام بەشداریکردن سەرکەوتوو نەبوو: {{error}}\n{{summary}}\n\n`{{prefix}}join` یان `{{prefix}}play` تاقی بکەرەوە دواتر، یان `{{prefix}}247 off` بۆ لابردن.", + "247Status": "♾️ **دۆخی 24/7**: {{status}}\n\n`{{prefix}}247 on` یان `{{prefix}}247 auto` بەکاربهێنە بۆ چالاککردن — `{{prefix}}247 off` بۆ ناچالاککردن.", "helpTitle": "⚙️ یارمەتی ڕێکخستنەکان", "helpAvailable": "**ڕێکخستنە بەردەستەکان:** {{settings}}", "helpSubcommands": "**فەرمانە لاوەکییەکان:**\n• `{{prefix}}settings get` — لیستی هەموو بەهای ئێستا\n• `{{prefix}}settings get <ڕێکخستن>` — بینینی ڕێکخستنێک\n• `{{prefix}}settings set <ڕێکخستن> <بەها>` — گۆڕینی ڕێکخستن\n• `{{prefix}}settings reset <ڕێکخستن>` — گەڕاندنەوەی بەهای بنەڕەتی\n• `{{prefix}}settings help <ڕێکخستن>` — ڕوونکردنەوەی ڕێکخستن", @@ -463,7 +464,37 @@ "modeOff": "❌ ناچالاک", "channelsLabel": "{{count}} کەناڵ", "channelsLabelPlural": "{{count}} کەناڵ", - "thisServer": "ئەم سێرڤەرە" + "thisServer": "ئەم سێرڤەرە", + "247Panel": { + "title": "♾️ دۆخی 24/7", + "noChannelsSaved": "هیچ کەناڵێکی دەنگ پاشەکەوت نەکراوە.", + "gettingStarted": "دەستپێکردن", + "gettingStartedValue": "• `{{prefix}}247 on` — بەهەمیشەیی بمێنەرەوە\n• `{{prefix}}247 auto` — بمێنەرەوە + دووبارە خۆکارانە بەشداریکردن لە دوای پچڕان", + "footer": "{{prefix}}247 on | {{prefix}}247 auto | {{prefix}}247 off", + "channelsSaved_one": "{{count}} کەناڵ پاشەکەوت کرا", + "channelsSaved_other": "{{count}} کەناڵ پاشەکەوت کران", + "summaryOn": "✅ {{count}} چالاک", + "summaryAuto": "🔄 {{count}} خۆکار", + "modeOn": "✅ چالاک", + "modeAuto": "🔄 خۆکار", + "modeOff": "❌ ناچالاک", + "enabledTitle": "♾️ 24/7 {{mode}}", + "enabledDescription": "{{channel}} ← **{{mode}}** — {{summary}}", + "enabledFooter": "{{prefix}}247 off بۆ ناچالاککردنی کەناڵێک", + "savedChannels": "کەناڵە پاشەکەوتکراوەکان", + "currentMarker": " ←", + "disabledTitle": "♾️ 24/7 ناچالاک", + "noChannelsSavedField": "هیچ کەناڵێک پاشەکەوت نەکراوە", + "allChannelsRemoved": "هەموو کەناڵەکانی 24/7 لابراون. بۆت لە دوای بێچالاکبوون دەنگ جێدەهێڵێت.", + "channelRemoved": "<#{{channel}}> لابرا", + "channelsRemaining_one": "{{count}} کەناڵ ماوە", + "channelsRemaining_other": "{{count}} کەناڵ ماون", + "reenableFooter": "{{prefix}}247 on | {{prefix}}247 auto بۆ چالاککردنەوە", + "allChannelsLabel": "❌ هەموو کەناڵەکان", + "allChannelsDisabled": "دۆخی 24/7 **ناچالاک کرا** بۆ هەموو کەناڵەکان لەم سێرڤەرەدا.\nبۆت لە دوای بێچالاکبوون دەنگ جێدەهێڵێت.", + "noChannelsSavedShort": "هیچ کەناڵێک پاشەکەوت نەکراوە", + "joinFailed": "⚠️ 24/7 {{mode}} پاشەکەوت کرا، بەڵام بەشداریکردن لە <#{{channel}}> سەرکەوتوو نەبوو.\nهەڵە: `{{error}}`\n\n`{{prefix}}join` یان `{{prefix}}play` تاقی بکەرەوە دواتر." + } }, "shuffle": { "emptyQueue": "هیچ شتێک نییە لە ڕیزبەندییەکەدا بۆ تێکەڵکردن.", diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index c0b648b..2f07640 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -248,8 +248,9 @@ "specifyChannel": "⚠️ Du bist in keinem Sprachkanal. Ich spiele in:\n{{channels}}\n\nNutze `{{prefix}}leave <#channel>` um einen bestimmten Kanal zu verlassen.", "noPlayerInChannel": "⚠️ Ich spiele nicht in <#{{channel}}>. Ich bin in:\n{{channels}}", "playerNotInit": "Player nicht initialisiert.", - "leftRejoin247": "✅ Erfolgreich verlassen — trete <#{{channel}}> in 5 Sekunden wieder bei.\nUm den 24/7-Modus dauerhaft zu deaktivieren, nutze `%247 off`.", - "left247On": "✅ Erfolgreich verlassen.\nℹ️ 24/7-Modus ist **aktiv** — Bot wird nicht automatisch wiederkommen. Nutze `%play`, um ihn zurückzuholen, oder `%247 off` zum vollständigen Deaktivieren.\n💡 Nutze `%247` um alle gespeicherten Kanäle zu sehen." + "leftRejoin247": "✅ Erfolgreich verlassen — trete <#{{channel}}> in wenigen Sekunden wieder bei.\nUm den 24/7-Modus dauerhaft zu deaktivieren, nutze `{{prefix}}247 off`.", + "left247On": "✅ Erfolgreich verlassen.\n24/7-Modus ist **aktiv** — Bot wird nicht automatisch wiederkommen. Nutze `{{prefix}}play`, um ihn zurückzuholen, oder `{{prefix}}247 off` zum vollständigen Deaktivieren.\nNutze `{{prefix}}247` um alle gespeicherten Kanäle zu sehen.", + "autoRejoinHint": "⚠️ 24/7-Modus ist aktiviert (auto) — trete <#{{channel}}> in wenigen Sekunden wieder bei.\nUm mich dauerhaft zu entfernen, deaktiviere zuerst den 24/7-Modus: `{{prefix}}247 off`" }, "list": { "empty": "📭 Die Warteschlange ist leer. Nutze `{{prefix}}play`, um Songs hinzuzufügen!", @@ -421,15 +422,15 @@ "invalidLocale": "❌ `{{locale}}` wird nicht unterstützt.\nVerfügbare Locales: {{locales}}", "prefixLength": "❌ Das Präfix muss zwischen **1** und **5** Zeichen lang sein.", "prefixSpaces": "❌ Das Präfix darf keine Leerzeichen enthalten.", - "invalid247": "❌ Ungültiger Wert `{{value}}` für den 24/7-Modus.\n\n**Gültige Optionen:**\n• `on` — Bot bleibt permanent verbunden. Kein automatischer Wiederbeitritt nach `%leave`.\n• `auto` — Bot bleibt verbunden und tritt nach `%leave` oder Trennung automatisch bei.\n• `off` — Bot verlässt nach Inaktivität.\n\n💡 Jeder Kanal hat seinen eigenen Modus. Nutze `%247` um alle gespeicherten Kanäle zu sehen.", + "invalid247": "❌ Ungültiger Wert `{{value}}` für den 24/7-Modus.\n\n**Gültige Optionen:**\n• `on` — permanent verbunden, kein automatischer Wiederbeitritt nach `{{prefix}}leave`\n• `auto` — verbunden & automatischer Wiederbeitritt nach `{{prefix}}leave` oder Trennung\n• `off` — verlässt nach Inaktivität\n\nJeder Kanal hat seinen eigenen Modus. Nutze `{{prefix}}247` um alle gespeicherten Kanäle zu sehen.", "noServer": "❌ Konnte deinen Server nicht ermitteln.", - "noVoice247": "❌ Du bist in keinem Sprachkanal. Tritt einem bei und führe dann `%247 {{mode}}` erneut aus.\n\n💡 Jeder Kanal hat seinen eigenen 24/7-Modus.", - "247Disabled": "✅ 24/7-Modus **deaktiviert** für <#{{channel}}>. Bot hat den Kanal verlassen.\n💡 Nutze `%247` um verbleibende gespeicherte Kanäle zu sehen.", + "noVoice247": "❌ Du bist in keinem Sprachkanal. Tritt einem bei und führe dann `{{prefix}}247 {{mode}}` erneut aus.\n\n💡 Jeder Kanal hat seinen eigenen 24/7-Modus.", + "247Disabled": "✅ 24/7-Modus **deaktiviert** für <#{{channel}}>. Bot hat den Kanal verlassen.\n💡 Nutze `{{prefix}}247` um verbleibende gespeicherte Kanäle zu sehen.", "247DisabledAll": "✅ 24/7-Modus **deaktiviert** für alle Kanäle in diesem Server.\nBot verlässt nach Inaktivität.", - "247Set": "✅ 24/7-Modus auf **{{mode}}** gesetzt für <#{{channel}}>.\n{{summary}}\n\n💡 Nutze `%247` um alle gespeicherten Kanäle zu sehen.", - "247Joined": "✅ 24/7-Modus auf **{{mode}}** gesetzt für <#{{channel}}>. Bot beigetreten!\n{{summary}}\n\n💡 Nutze `%247` um alle gespeicherten Kanäle zu sehen.", - "247JoinFailed": "⚠️ 24/7-Modus gespeichert für <#{{channel}}>, aber Beitritt fehlgeschlagen: {{error}}\n{{summary}}\n\nVersuche `%join` oder `%play` später, oder `%247 off` zum Entfernen.", - "247Status": "♾️ **24/7-Modus**: {{status}}\n\nNutze `%247 on` oder `%247 auto` zum Aktivieren — `%247 off` zum Deaktivieren.", + "247Set": "✅ 24/7-Modus auf **{{mode}}** gesetzt für <#{{channel}}>.\n{{summary}}\n\n💡 Nutze `{{prefix}}247` um alle gespeicherten Kanäle zu sehen.", + "247Joined": "✅ 24/7-Modus auf **{{mode}}** gesetzt für <#{{channel}}>. Bot beigetreten!\n{{summary}}\n\n💡 Nutze `{{prefix}}247` um alle gespeicherten Kanäle zu sehen.", + "247JoinFailed": "⚠️ 24/7-Modus gespeichert für <#{{channel}}>, aber Beitritt fehlgeschlagen: {{error}}\n{{summary}}\n\nVersuche `{{prefix}}join` oder `{{prefix}}play` später, oder `{{prefix}}247 off` zum Entfernen.", + "247Status": "♾️ **24/7-Modus**: {{status}}\n\nNutze `{{prefix}}247 on` oder `{{prefix}}247 auto` zum Aktivieren — `{{prefix}}247 off` zum Deaktivieren.", "helpTitle": "⚙️ Einstellungen-Hilfe", "helpAvailable": "**Verfügbare Einstellungen:** {{settings}}", "helpSubcommands": "**Unterbefehle:**\n• `{{prefix}}settings get` — alle aktuellen Werte anzeigen\n• `{{prefix}}settings get ` — einzelne Einstellung anzeigen\n• `{{prefix}}settings set ` — Einstellung ändern\n• `{{prefix}}settings reset ` — Standardwert wiederherstellen\n• `{{prefix}}settings help ` — Einstellung beschreiben", @@ -463,7 +464,37 @@ "modeOff": "❌ aus", "channelsLabel": "{{count}} Kanal", "channelsLabelPlural": "{{count}} Kanäle", - "thisServer": "dieser Server" + "thisServer": "dieser Server", + "247Panel": { + "title": "♾️ 24/7-Modus", + "noChannelsSaved": "Keine Sprachkanäle gespeichert.", + "gettingStarted": "Erste Schritte", + "gettingStartedValue": "• `{{prefix}}247 on` — dauerhaft bleiben\n• `{{prefix}}247 auto` — bleiben + automatischer Wiederbeitritt nach Trennung", + "footer": "{{prefix}}247 on | {{prefix}}247 auto | {{prefix}}247 off", + "channelsSaved_one": "{{count}} Kanal gespeichert", + "channelsSaved_other": "{{count}} Kanäle gespeichert", + "summaryOn": "✅ {{count}} an", + "summaryAuto": "🔄 {{count}} automatisch", + "modeOn": "✅ An", + "modeAuto": "🔄 Automatisch", + "modeOff": "❌ Aus", + "enabledTitle": "♾️ 24/7 {{mode}}", + "enabledDescription": "{{channel}} → **{{mode}}** — {{summary}}", + "enabledFooter": "{{prefix}}247 off zum Deaktivieren für einen Kanal", + "savedChannels": "Gespeicherte Kanäle", + "currentMarker": " ←", + "disabledTitle": "♾️ 24/7 Deaktiviert", + "noChannelsSavedField": "Keine Kanäle gespeichert", + "allChannelsRemoved": "Alle 24/7-Kanäle entfernt. Bot verlässt nach Inaktivität.", + "channelRemoved": "<#{{channel}}> entfernt", + "channelsRemaining_one": "{{count}} Kanal verbleibend", + "channelsRemaining_other": "{{count}} Kanäle verbleibend", + "reenableFooter": "{{prefix}}247 on | {{prefix}}247 auto zum Reaktivieren", + "allChannelsLabel": "❌ Alle Kanäle", + "allChannelsDisabled": "24/7-Modus **deaktiviert** für alle Kanäle in diesem Server.\nBot verlässt nach Inaktivität.", + "noChannelsSavedShort": "Keine Kanäle gespeichert", + "joinFailed": "⚠️ 24/7 {{mode}} gespeichert, aber Beitritt zu <#{{channel}}> fehlgeschlagen.\nFehler: `{{error}}`\n\nVersuche `{{prefix}}join` oder `{{prefix}}play` später." + } }, "shuffle": { "emptyQueue": "Es gibt nichts zum Mischen in der Warteschlange.", diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index 52ac551..a9d0cb9 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -253,8 +253,9 @@ "specifyChannel": "⚠️ You're not in a voice channel. I'm playing in:\n{{channels}}\n\nUse `{{prefix}}leave <#channel>` to leave a specific channel.", "noPlayerInChannel": "⚠️ I'm not playing in <#{{channel}}>. I'm in:\n{{channels}}", "playerNotInit": "Player not initialized.", - "leftRejoin247": "✅ Successfully Left — rejoining <#{{channel}}> in 5 seconds.\nTo disable 24/7 mode permanently, use `%247 off`.", - "left247On": "✅ Successfully Left.\n24/7 mode is **on** — bot won't rejoin automatically. Use `%play` to bring it back, or `%247 off` to fully disable.\nUse `%247` to view all saved channels." + "leftRejoin247": "✅ Successfully Left — rejoining <#{{channel}}> in a few seconds.\nTo disable 24/7 mode permanently, use `{{prefix}}247 off`.", + "left247On": "✅ Successfully Left.\n24/7 mode is **on** — bot won't rejoin automatically. Use `{{prefix}}play` to bring it back, or `{{prefix}}247 off` to fully disable.\nUse `{{prefix}}247` to view all saved channels.", + "autoRejoinHint": "⚠️ 24/7 mode is enabled (auto) — I'll rejoin <#{{channel}}> in a few seconds.\nTo permanently remove me, disable 24/7 mode first: `{{prefix}}247 off`" }, "lastfm": { "notConfigured": "❌ Last.fm integration is not configured on this bot. Ask the bot owner to add a Last.fm API key to the config.", @@ -453,22 +454,52 @@ "invalidLocale": "❌ `{{locale}}` is not a supported locale.\nAvailable locales: {{locales}}", "prefixLength": "❌ Prefix must be between **1** and **5** characters.", "prefixSpaces": "❌ Prefix cannot contain spaces.", - "invalid247": "❌ Invalid value `{{value}}` for 24/7 mode.\n\n**Valid options:**\n• `on` — Stay connected permanently, no auto-rejoin after `%leave`\n• `auto` — Stay connected & auto-rejoin after `%leave` or disconnect\n• `off` — Leave after inactivity\n\nEach channel has its own mode. Use `%247` to see all saved channels.", + "invalid247": "❌ Invalid value `{{value}}` for 24/7 mode.\n\n**Valid options:**\n• `on` — Stay connected permanently, no auto-rejoin after `{{prefix}}leave`\n• `auto` — Stay connected & auto-rejoin after `{{prefix}}leave` or disconnect\n• `off` — Leave after inactivity\n\nEach channel has its own mode. Use `{{prefix}}247` to see all saved channels.", "noServer": "❌ Could not detect your server.", - "noVoice247": "❌ You're not in a voice channel. Join one first, then run `%247 {{mode}}` again.\n\n💡 Each channel gets its own 24/7 mode setting.", - "247Disabled": "✅ 24/7 mode **disabled** for <#{{channel}}>. Bot has left.\n💡 Use `%247` to see remaining saved channels.", + "noVoice247": "❌ You're not in a voice channel. Join one first, then run `{{prefix}}247 {{mode}}` again.\n\n💡 Each channel gets its own 24/7 mode setting.", + "247Disabled": "✅ 24/7 mode **disabled** for <#{{channel}}>. Bot has left.\n💡 Use `{{prefix}}247` to see remaining saved channels.", "247DisabledAll": "✅ 24/7 mode **disabled** for all channels in this server.\nBot will leave voice after inactivity.", - "247Set": "✅ 24/7 mode set to **{{mode}}** for <#{{channel}}>.\n{{summary}}\n\n💡 Use `%247` to view all saved channels.", - "247Joined": "✅ 24/7 mode set to **{{mode}}** for <#{{channel}}>. Bot joined!\n{{summary}}\n\n💡 Use `%247` to view all saved channels.", - "247JoinFailed": "⚠️ 24/7 mode saved for <#{{channel}}>, but failed to join: {{error}}\n{{summary}}\n\nTry `%join` or `%play` later, or `%247 off` to remove.", - "247Status": "♾️ **24/7 Mode**: {{status}}\n\nUse `%247 on` or `%247 auto` to enable — `%247 off` to disable.", + "247Set": "✅ 24/7 mode set to **{{mode}}** for <#{{channel}}>.\n{{summary}}\n\n💡 Use `{{prefix}}247` to view all saved channels.", + "247Joined": "✅ 24/7 mode set to **{{mode}}** for <#{{channel}}>. Bot joined!\n{{summary}}\n\n💡 Use `{{prefix}}247` to view all saved channels.", + "247JoinFailed": "⚠️ 24/7 mode saved for <#{{channel}}>, but failed to join: {{error}}\n{{summary}}\n\nTry `{{prefix}}join` or `{{prefix}}play` later, or `{{prefix}}247 off` to remove.", + "247Status": "♾️ **24/7 Mode**: {{status}}\n\nUse `{{prefix}}247 on` or `{{prefix}}247 auto` to enable — `{{prefix}}247 off` to disable.", "helpTitle": "⚙️ Settings Help", "helpAvailable": "**Available settings:** {{settings}}", "helpSubcommands": "**Subcommands:**\n• `{{prefix}}settings get` — list all current values\n• `{{prefix}}settings get ` — view a single setting\n• `{{prefix}}settings set ` — change a setting\n• `{{prefix}}settings reset ` — restore default value\n• `{{prefix}}settings help ` — describe a setting", "helpShortcuts": "**Shortcuts:** `{{prefix}}prefix`, `{{prefix}}247`", "serverTitle": "⚙️ Server Settings", "serverHeader": "Server: **{{name}}**", - "shortcutsHint": "Shortcuts: `{{prefix}}247`, `{{prefix}}prefix`\nUse `{{prefix}}settings help ` to learn about any setting." + "shortcutsHint": "Shortcuts: `{{prefix}}247`, `{{prefix}}prefix`\nUse `{{prefix}}settings help ` to learn about any setting.", + "247Panel": { + "title": "♾️ 24/7 Mode", + "noChannelsSaved": "No voice channels saved.", + "gettingStarted": "Getting Started", + "gettingStartedValue": "• `{{prefix}}247 on` — stay permanently\n• `{{prefix}}247 auto` — stay + auto-rejoin after disconnect", + "footer": "{{prefix}}247 on | {{prefix}}247 auto | {{prefix}}247 off", + "channelsSaved_one": "{{count}} channel saved", + "channelsSaved_other": "{{count}} channels saved", + "summaryOn": "✅ {{count}} on", + "summaryAuto": "🔄 {{count}} auto", + "modeOn": "✅ On", + "modeAuto": "🔄 Auto", + "modeOff": "❌ Off", + "enabledTitle": "♾️ 24/7 {{mode}}", + "enabledDescription": "{{channel}} → **{{mode}}** — {{summary}}", + "enabledFooter": "{{prefix}}247 off to disable for a channel", + "savedChannels": "Saved Channels", + "currentMarker": " ←", + "disabledTitle": "♾️ 24/7 Disabled", + "noChannelsSavedField": "No Channels Saved", + "allChannelsRemoved": "All 24/7 channels removed. Bot will leave voice after inactivity.", + "channelRemoved": "<#{{channel}}> removed", + "channelsRemaining_one": "{{count}} channel remaining", + "channelsRemaining_other": "{{count}} channels remaining", + "reenableFooter": "{{prefix}}247 on | {{prefix}}247 auto to re-enable", + "allChannelsLabel": "❌ All Channels", + "allChannelsDisabled": "24/7 mode **disabled** for all channels in this server.\nThe bot will leave voice after inactivity.", + "noChannelsSavedShort": "No channels saved", + "joinFailed": "⚠️ 24/7 {{mode}} saved, but failed to join <#{{channel}}>.\nError: `{{error}}`\n\nTry `{{prefix}}join` or `{{prefix}}play` later." + } }, "shuffle": { "emptyQueue": "There is nothing to shuffle in the queue.", diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index 5d9a109..af11411 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -248,8 +248,9 @@ "specifyChannel": "⚠️ Você não está em um canal de voz. Estou tocando em:\n{{channels}}\n\nUse `{{prefix}}leave <#channel>` para sair de um canal específico.", "noPlayerInChannel": "⚠️ Não estou tocando em <#{{channel}}>. Estou em:\n{{channels}}", "playerNotInit": "Player não inicializado.", - "leftRejoin247": "✅ Sai com sucesso — reentrando em <#{{channel}}> em 5 segundos.\nPara desativar o modo 24/7 permanentemente, use `%247 off`.", - "left247On": "✅ Sai com sucesso.\nℹ️ O modo 24/7 está **ativo** — o bot não voltará automaticamente. Use `%play` para trazê-lo de volta ou `%247 off` para desativar completamente." + "leftRejoin247": "✅ Sai com sucesso — reentrando em <#{{channel}}> em alguns segundos.\nPara desativar o modo 24/7 permanentemente, use `{{prefix}}247 off`.", + "left247On": "✅ Sai com sucesso.\nO modo 24/7 está **ativo** — o bot não voltará automaticamente. Use `{{prefix}}play` para trazê-lo de volta ou `{{prefix}}247 off` para desativar completamente.\nUse `{{prefix}}247` para ver todos os canais salvos.", + "autoRejoinHint": "⚠️ O modo 24/7 está ativado (auto) — vou reentrar em <#{{channel}}> em alguns segundos.\nPara me remover permanentemente, desative o modo 24/7 primeiro: `{{prefix}}247 off`" }, "list": { "empty": "📭 A fila está vazia. Use `{{prefix}}play` para adicionar músicas!", @@ -421,15 +422,15 @@ "invalidLocale": "❌ `{{locale}}` não é um idioma suportado.\nIdiomas disponíveis: {{locales}}", "prefixLength": "❌ O prefixo deve ter entre **1** e **5** caracteres.", "prefixSpaces": "❌ O prefixo não pode conter espaços.", - "invalid247": "❌ Invalid value `{{value}}` for 24/7 mode.\n\n**Valid options:**\n• `on` — Bot stays connected permanently. Won't rejoin after `%leave`.\n• `auto` — Bot stays connected and auto-rejoins after `%leave` or disconnect.\n• `off` — Bot leaves after inactivity.\n\n💡 Each channel has its own mode. Use `%247` to see all saved channels.", + "invalid247": "❌ Valor inválido `{{value}}` para o modo 24/7.\n\n**Opções válidas:**\n• `on` — Permanecer conectado permanentemente, sem reentrada automática após `{{prefix}}leave`\n• `auto` — Permanecer conectado & reentrada automática após `{{prefix}}leave` ou desconexão\n• `off` — Sair após inatividade\n\nCada canal tem seu próprio modo. Use `{{prefix}}247` para ver todos os canais salvos.", "noServer": "❌ Não foi possível detectar seu servidor.", - "noVoice247": "❌ Você não está em um canal de voz. Entre em um primeiro e depois execute `%247 {{mode}}` novamente.", - "247Disabled": "✅ Modo 24/7 **desativado** para <#{{channel}}>. Bot saiu.", - "247DisabledAll": "✅ Modo 24/7 **desativado** para todos os canais neste servidor.", - "247Set": "✅ Modo 24/7 definido como **{{mode}}** para <#{{channel}}>.\n{{summary}}", - "247Joined": "✅ Modo 24/7 definido como **{{mode}}** para <#{{channel}}>. Bot entrou!\n{{summary}}", - "247JoinFailed": "✅ Modo 24/7 salvo para <#{{channel}}>, mas falha ao entrar: {{error}}\n{{summary}}", - "247Status": "♾️ **24/7 Mode**: {{status}}\n\nUse `%247 on` or `%247 auto` to enable — `%247 off` to disable.", + "noVoice247": "❌ Você não está em um canal de voz. Entre em um primeiro e depois execute `{{prefix}}247 {{mode}}` novamente.\n\n💡 Cada canal tem sua própria configuração de modo 24/7.", + "247Disabled": "✅ Modo 24/7 **desativado** para <#{{channel}}>. Bot saiu.\n💡 Use `{{prefix}}247` para ver os canais salvos restantes.", + "247DisabledAll": "✅ Modo 24/7 **desativado** para todos os canais neste servidor.\nO bot sairá do canal de voz após inatividade.", + "247Set": "✅ Modo 24/7 definido como **{{mode}}** para <#{{channel}}>.\n{{summary}}\n\n💡 Use `{{prefix}}247` para ver todos os canais salvos.", + "247Joined": "✅ Modo 24/7 definido como **{{mode}}** para <#{{channel}}>. Bot entrou!\n{{summary}}\n\n💡 Use `{{prefix}}247` para ver todos os canais salvos.", + "247JoinFailed": "⚠️ Modo 24/7 salvo para <#{{channel}}>, mas falha ao entrar: {{error}}\n{{summary}}\n\nTente `{{prefix}}join` ou `{{prefix}}play` mais tarde, ou `{{prefix}}247 off` para remover.", + "247Status": "♾️ **Modo 24/7**: {{status}}\n\nUse `{{prefix}}247 on` ou `{{prefix}}247 auto` para ativar — `{{prefix}}247 off` para desativar.", "helpTitle": "⚙️ Ajuda de Configurações", "helpAvailable": "**Configurações disponíveis:** {{settings}}", "helpSubcommands": "**Subcomandos:**\n• `{{prefix}}settings get` — listar todos os valores atuais\n• `{{prefix}}settings get ` — ver uma configuração específica\n• `{{prefix}}settings set ` — alterar uma configuração\n• `{{prefix}}settings reset ` — restaurar valor padrão\n• `{{prefix}}settings help ` — descrever uma configuração", @@ -463,7 +464,37 @@ "modeOff": "❌ desligado", "channelsLabel": "{{count}} canal", "channelsLabelPlural": "{{count}} canais", - "thisServer": "este servidor" + "thisServer": "este servidor", + "247Panel": { + "title": "♾️ Modo 24/7", + "noChannelsSaved": "Nenhum canal de voz salvo.", + "gettingStarted": "Primeiros Passos", + "gettingStartedValue": "• `{{prefix}}247 on` — permanecer permanentemente\n• `{{prefix}}247 auto` — permanecer + reentrada automática após desconexão", + "footer": "{{prefix}}247 on | {{prefix}}247 auto | {{prefix}}247 off", + "channelsSaved_one": "{{count}} canal salvo", + "channelsSaved_other": "{{count}} canais salvos", + "summaryOn": "✅ {{count}} ligado", + "summaryAuto": "🔄 {{count}} automático", + "modeOn": "✅ Ligado", + "modeAuto": "🔄 Automático", + "modeOff": "❌ Desligado", + "enabledTitle": "♾️ 24/7 {{mode}}", + "enabledDescription": "{{channel}} → **{{mode}}** — {{summary}}", + "enabledFooter": "{{prefix}}247 off para desativar um canal", + "savedChannels": "Canais Salvos", + "currentMarker": " ←", + "disabledTitle": "♾️ 24/7 Desativado", + "noChannelsSavedField": "Nenhum Canal Salvo", + "allChannelsRemoved": "Todos os canais 24/7 removidos. O bot sairá do canal de voz após inatividade.", + "channelRemoved": "<#{{channel}}> removido", + "channelsRemaining_one": "{{count}} canal restante", + "channelsRemaining_other": "{{count}} canais restantes", + "reenableFooter": "{{prefix}}247 on | {{prefix}}247 auto para reativar", + "allChannelsLabel": "❌ Todos os Canais", + "allChannelsDisabled": "Modo 24/7 **desativado** para todos os canais neste servidor.\nO bot sairá do canal de voz após inatividade.", + "noChannelsSavedShort": "Nenhum canal salvo", + "joinFailed": "⚠️ 24/7 {{mode}} salvo, mas falha ao entrar em <#{{channel}}>.\nErro: `{{error}}`\n\nTente `{{prefix}}join` ou `{{prefix}}play` mais tarde." + } }, "shuffle": { "emptyQueue": "Não há nada para embaralhar na fila.",