mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
idk what am doing
This commit is contained in:
1 parent
54fe6580b3
commit
579b69c368
10 files changed
+296
-35
No files matched your search
+16
-3
@@ -39,6 +39,17 @@ function cleanId(raw) {
|
||||
return String(raw).replace(/\D/g, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate that a value looks like a real Fluxer ID.
|
||||
* Fluxer IDs are large numeric snowflakes (typically 17-20 digits).
|
||||
* We accept >= 15 digits to be safe, but reject anything shorter
|
||||
* (which would be garbage like "3", "42", "move", etc.).
|
||||
*/
|
||||
function isValidFluxerId(id) {
|
||||
const cleaned = String(id).replace(/\D/g, "");
|
||||
return cleaned.length >= 15 && cleaned.length <= 22;
|
||||
}
|
||||
|
||||
/** Parse "true/false" and their aliases → boolean | null */
|
||||
function parseBool(str) {
|
||||
const s = String(str).toLowerCase().trim();
|
||||
@@ -77,16 +88,18 @@ function get247Channels(set) {
|
||||
if (!raw || raw === "none") return new Set();
|
||||
if (typeof raw === "string") {
|
||||
const id = cleanId(raw);
|
||||
return id ? new Set([id]) : new Set();
|
||||
return (id && isValidFluxerId(id)) ? new Set([id]) : new Set();
|
||||
}
|
||||
if (Array.isArray(raw)) {
|
||||
return new Set(raw.map(id => cleanId(id)).filter(Boolean));
|
||||
return new Set(raw.map(id => cleanId(id)).filter(id => id && isValidFluxerId(id)));
|
||||
}
|
||||
return new Set();
|
||||
}
|
||||
|
||||
function save247Channels(set, channels) {
|
||||
const arr = [...channels];
|
||||
// Only keep valid Fluxer IDs — strip anything that isn't
|
||||
// a proper channel ID (e.g. garbage from DB corruption).
|
||||
const arr = [...channels].filter(id => id && isValidFluxerId(id));
|
||||
set.set("stay_247", arr.length > 0 ? arr : "none");
|
||||
}
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ export class Remix {
|
||||
|
||||
// ── Gateway Handler ─────────────────────────────────────────────────────
|
||||
// Handles raw WS gateway events, voice-state tracking, presence rotation,
|
||||
// and high-level Discord event handlers (GuildCreate, GuildDelete,
|
||||
// and high-level Fluxer event handlers (GuildCreate, GuildDelete,
|
||||
// VoiceStateUpdate).
|
||||
this.gatewayHandler = new GatewayHandler(this, this.recoveryManager);
|
||||
|
||||
@@ -147,14 +147,23 @@ export class Remix {
|
||||
for (const [guildId, serverSettings] of settings.guilds) {
|
||||
const val = serverSettings.get("stay_247");
|
||||
if (!val || val === "none") continue;
|
||||
if (Array.isArray(val)) {
|
||||
const cleaned = val.map(id => String(id).replace(/\D/g, "")).filter(Boolean);
|
||||
if (JSON.stringify(cleaned) !== JSON.stringify(val)) {
|
||||
serverSettings.set("stay_247", cleaned.length > 0 ? cleaned : "none");
|
||||
// ── Sanitise stay_247 values ────────────────────────────────────────
|
||||
// Strip any value that isn't a valid Fluxer ID (>= 15 digits).
|
||||
// This catches corruption from old JSON_SET paths or bad data.
|
||||
const rawArr = Array.isArray(val) ? val : [val];
|
||||
const cleaned = rawArr
|
||||
.map(id => String(id).replace(/\D/g, ""))
|
||||
.filter(id => id.length >= 15 && id.length <= 22);
|
||||
const needsSave = JSON.stringify(cleaned) !== JSON.stringify(val);
|
||||
if (needsSave || !Array.isArray(val)) {
|
||||
const newVal = cleaned.length > 0 ? cleaned : "none";
|
||||
serverSettings.set("stay_247", newVal);
|
||||
if (cleaned.length === 0 && (val && val !== "none")) {
|
||||
serverSettings.set("stay_247_mode", "off");
|
||||
}
|
||||
} else {
|
||||
const clean = String(val).replace(/\D/g, "");
|
||||
serverSettings.set("stay_247", clean ? [clean] : "none");
|
||||
logger.settings(
|
||||
`[settings] Cleaned stay_247 for guild ${guildId}: ${JSON.stringify(val)} → ${JSON.stringify(newVal)}`
|
||||
);
|
||||
}
|
||||
}
|
||||
this.recoveryManager.settingsReady = true;
|
||||
|
||||
@@ -5,7 +5,7 @@ import mysql from "mysql2";
|
||||
|
||||
/**
|
||||
* GatewayHandler — manages raw WebSocket gateway events, voice-state tracking,
|
||||
* presence rotation, and high-level Discord event handlers (GuildCreate,
|
||||
* presence rotation, and high-level Fluxer event handlers (GuildCreate,
|
||||
* GuildDelete, VoiceStateUpdate).
|
||||
*
|
||||
* Extracted from index.mjs to reduce the Remix constructor footprint.
|
||||
@@ -277,10 +277,10 @@ export class GatewayHandler {
|
||||
this.presenceTimer = setInterval(setPresence, this.presenceInterval);
|
||||
}
|
||||
|
||||
// ── Discord event handlers ───────────────────────────────────────────────────
|
||||
// ── Fluxer event handlers ─────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
* Register all high-level Discord event listeners on the Fluxer client.
|
||||
* Register all high-level Fluxer event listeners on the Fluxer client.
|
||||
* Call once during bot startup.
|
||||
*/
|
||||
setupEventHandlers() {
|
||||
@@ -599,9 +599,9 @@ export class GatewayHandler {
|
||||
const raw = set.get("stay_247");
|
||||
if ((rekeyed || existingPlayer) && raw && raw !== "none") {
|
||||
const channels = Array.isArray(raw)
|
||||
? new Set(raw.map(id => String(id).replace(/\D/g, "")).filter(Boolean))
|
||||
: new Set([String(raw).replace(/\D/g, "")]);
|
||||
if (channels.has(cleanOld) && cleanOld !== cleanId) {
|
||||
? new Set(raw.map(id => String(id).replace(/\D/g, "")).filter(id => id.length >= 15))
|
||||
: new Set();
|
||||
if (channels.has(cleanOld) && cleanOld !== cleanId && cleanId.length >= 15) {
|
||||
channels.delete(cleanOld);
|
||||
channels.add(cleanId);
|
||||
set.set("stay_247", [...channels]);
|
||||
@@ -624,8 +624,8 @@ export class GatewayHandler {
|
||||
const raw = set.get("stay_247");
|
||||
if (raw && raw !== "none") {
|
||||
const channels = Array.isArray(raw)
|
||||
? new Set(raw.map(id => String(id).replace(/\D/g, "")).filter(Boolean))
|
||||
: new Set([String(raw).replace(/\D/g, "")]);
|
||||
? new Set(raw.map(id => String(id).replace(/\D/g, "")).filter(id => id.length >= 15))
|
||||
: new Set();
|
||||
if (channels.has(cleanOld)) {
|
||||
const mode = set.get("stay_247_mode") ?? "auto";
|
||||
if (mode === "on" || mode === "auto") {
|
||||
|
||||
+34
-1
@@ -50,6 +50,28 @@ function getPlayerChannelId(player, fallbackChannelId = null) {
|
||||
return cleanId(player?._channelId ?? player?._home247Channel ?? fallbackChannelId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sanitize raw voice-join error messages into user-friendly text.
|
||||
* Raw errors like "401 Unauthorized - no permissions to access the room"
|
||||
* are confusing to users — map them to clear, translatable messages.
|
||||
*/
|
||||
function sanitizeJoinError(err) {
|
||||
const msg = String(err?.message ?? err ?? "");
|
||||
if (msg.includes("401") || msg.includes("Unauthorized")) {
|
||||
return "PERMISSION";
|
||||
}
|
||||
if (msg.includes("permission") || msg.includes("Permission")) {
|
||||
return "PERMISSION";
|
||||
}
|
||||
if (msg.includes("not found") || msg.includes("Unknown channel")) {
|
||||
return "NOT_FOUND";
|
||||
}
|
||||
if (msg.includes("timeout") || msg.includes("timed out")) {
|
||||
return "TIMEOUT";
|
||||
}
|
||||
return null; // unknown — fall back to raw message
|
||||
}
|
||||
|
||||
export class PlayerManager {
|
||||
/** @type {SettingsManager} */
|
||||
settings;
|
||||
@@ -673,7 +695,18 @@ export class PlayerManager {
|
||||
|
||||
cb(player);
|
||||
} catch (err) {
|
||||
await statusMsg.edit(mkEmbed(this._t(message, "responses.join.joinFailed", { error: err.message }))).catch(() => {});
|
||||
const errCode = sanitizeJoinError(err);
|
||||
let errorMsg;
|
||||
if (errCode === "PERMISSION") {
|
||||
errorMsg = this._t(message, "responses.join.joinFailedPerms", { channel: `<#${cleanChannelId}>` });
|
||||
} else if (errCode === "NOT_FOUND") {
|
||||
errorMsg = this._t(message, "responses.join.joinFailedNotFound");
|
||||
} else if (errCode === "TIMEOUT") {
|
||||
errorMsg = this._t(message, "responses.join.joinFailed");
|
||||
} else {
|
||||
errorMsg = this._t(message, "responses.join.joinFailed", { error: err.message });
|
||||
}
|
||||
await statusMsg.edit(mkEmbed(errorMsg)).catch(() => {});
|
||||
this.playerMap.delete(cleanChannelId);
|
||||
player.destroy();
|
||||
}
|
||||
|
||||
+24
-1
@@ -75,6 +75,28 @@ export class RecoveryManager {
|
||||
const channelId = this.normalizeChannelId(player._channelId ?? channelKey);
|
||||
if (!guildId || !channelId) continue;
|
||||
|
||||
// ── Skip 24/7 channels ───────────────────────────────────────────
|
||||
// 24/7 on/auto already handles rejoin on boot via tryAutoJoin() which
|
||||
// reads the stay_247 setting from MySQL. No need to save/restore
|
||||
// these sessions in recovery.json — that's only for regular voice
|
||||
// sessions where users had active queues.
|
||||
try {
|
||||
const set = remix.settingsMgr.getServer(guildId);
|
||||
if (set) {
|
||||
const raw247 = set.get("stay_247");
|
||||
if (raw247 && raw247 !== "none") {
|
||||
const homeChannel = this.normalizeChannelId(player._home247Channel) || channelId;
|
||||
const channels247 = Array.isArray(raw247)
|
||||
? raw247.map(id => this.normalizeChannelId(id)).filter(Boolean)
|
||||
: [this.normalizeChannelId(raw247)].filter(Boolean);
|
||||
if (channels247.includes(channelId) || channels247.includes(homeChannel)) {
|
||||
logger.recovery(`[Recovery] Skipping 24/7 channel ${channelId} — auto-join handles this on boot.`);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (_) {}
|
||||
|
||||
const dedupeKey = `${guildId}:${channelId}`;
|
||||
if (seen.has(dedupeKey)) continue;
|
||||
seen.add(dedupeKey);
|
||||
@@ -429,12 +451,13 @@ export class RecoveryManager {
|
||||
}
|
||||
|
||||
// Retry if the failure is a transient LiveKit race (with max retries + backoff)
|
||||
// NOTE: "401 Unauthorized" is NOT transient — it means missing permissions or
|
||||
// bot kicked from guild. It is handled above by the guild membership check.
|
||||
const isTransient = e.message?.includes("engine is closed") ||
|
||||
e.message?.includes("MediaPlayer after retry") ||
|
||||
e.message?.includes("LiveKit connection timeout") ||
|
||||
e.message?.includes("LiveKit failed") ||
|
||||
e.message?.includes("No room available") ||
|
||||
e.message?.includes("401 Unauthorized") ||
|
||||
e.message?.includes("signal failure");
|
||||
|
||||
// Use the retryCount passed into spawnPlayer from scheduleSpawn's closure.
|
||||
|
||||
@@ -173,7 +173,11 @@
|
||||
"errorStreaming": "❌ خطأ في بث **{{title}}** — يتم التخطي.",
|
||||
"successfullyLeft": "✅ تم المغادرة بنجاح",
|
||||
"voiceSelectionInvalid": "قناة صوتية غير صالحة. حاول مرة أخرى أو اكتب `x`.",
|
||||
"voiceChannelRequired": "❌ يرجى الانضمام إلى **قناة صوتية** أولاً قبل استخدام هذا الأمر!"
|
||||
"voiceChannelRequired": "❌ يرجى الانضمام إلى **قناة صوتية** أولاً قبل استخدام هذا الأمر!",
|
||||
"joinPermissionError": "❌ ليس لدي إذن للانضمام إلى <#{{channel}}>. يرجى إعطائي إذن **الاتصال** في ذلك القناة.",
|
||||
"joinFailedPermissions": "❌ فشل الانضمام إلى القناة الصوتية — أذونات مفقودة. يرجى التأكد من أن لدي أذونات **الاتصال** و**التحدث**.",
|
||||
"joinFailedGeneric": "❌ فشل الانضمام إلى القناة الصوتية. يرجى المحاولة مرة أخرى.",
|
||||
"joinFailedNotFound": "❌ لم يتم العثور على تلك القناة الصوتية."
|
||||
},
|
||||
"clear": {
|
||||
"cleared": "🗑️ تم مسح قائمة الانتظار."
|
||||
@@ -232,7 +236,9 @@
|
||||
"noVoiceChannel": "❌ أنت لست في قناة صوتية. يرجى الانضمام إلى واحدة أولاً، أو حدد قناة: `{{prefix}}join <#قناة>`",
|
||||
"voiceChannelNotFound": "❌ لم أتمكن من العثور على تلك القناة الصوتية. جرّب استخدام إشارة مثل `<#معرف_قناة>` أو اسم القناة الدقيق.",
|
||||
"autoLeaveInactive": "غادرت القناة <#{{channel}}> بسبب عدم النشاط.",
|
||||
"autoLeaveInactive247": "غادرت القناة <#{{channel}}> بسبب عدم النشاط.\nإذا كنت تريدني أن أبقى في الصوت، استخدم `{{prefix}}247 on/auto`"
|
||||
"autoLeaveInactive247": "غادرت القناة <#{{channel}}> بسبب عدم النشاط.\nإذا كنت تريدني أن أبقى في الصوت، استخدم `{{prefix}}247 on/auto`",
|
||||
"joinFailedPerms": "❌ ليس لدي إذن للانضمام إلى <#{{channel}}>. يرجى التأكد من أن لدي إذن **الاتصال**.",
|
||||
"voiceChannelUnknown": "قناة صوتية غير معروفة"
|
||||
},
|
||||
"leave": {
|
||||
"noVoiceChannel": "⚠️ يرجى الانضمام إلى قناة صوتية أولاً.",
|
||||
@@ -251,6 +257,15 @@
|
||||
"upNext": " ▶",
|
||||
"queueTitle": "🎧 قائمة الانتظار"
|
||||
},
|
||||
"queue": {
|
||||
"empty": "قائمة الانتظار فارغة.",
|
||||
"indexOutOfBounds": "الفهرس خارج النطاق",
|
||||
"removed": "تمت إزالة **{{title}}** من قائمة الانتظار بنجاح.",
|
||||
"sourceOutOfBounds": "فهرس المصدر خارج النطاق",
|
||||
"targetOutOfBounds": "فهرس الهدف خارج النطاق",
|
||||
"alreadyInPosition": "المقطع موجود بالفعل في هذا الموضع",
|
||||
"moved": "تم نقل **{{title}}** من الموضع {{from}} إلى {{to}}."
|
||||
},
|
||||
"loop": {
|
||||
"invalidChoice": "'{{choice}}' غير صالح. استخدم `song` أو `queue`",
|
||||
"songActivated": "🔂 تم تفعيل تكرار الأغنية",
|
||||
@@ -419,7 +434,34 @@
|
||||
"helpShortcuts": "**الاختصارات:** `{{prefix}}prefix`، `{{prefix}}247`",
|
||||
"serverTitle": "⚙️ إعدادات الخادم",
|
||||
"serverHeader": "الخادم: **{{name}}**",
|
||||
"shortcutsHint": "الاختصارات: `{{prefix}}247`، `{{prefix}}prefix`\nاستخدم `{{prefix}}settings help <إعداد>` لمعرفة المزيد عن أي إعداد."
|
||||
"shortcutsHint": "الاختصارات: `{{prefix}}247`، `{{prefix}}prefix`\nاستخدم `{{prefix}}settings help <إعداد>` لمعرفة المزيد عن أي إعداد.",
|
||||
"enabled": "✅ مفعّل",
|
||||
"disabled": "❌ معطّل",
|
||||
"label247": "وضع 24/7",
|
||||
"labelPrefix": "البادئة",
|
||||
"labelSongAnnouncements": "إعلانات الأغاني",
|
||||
"labelPfp": "نمط صورة البوت",
|
||||
"labelLocale": "اللغة",
|
||||
"labelVolume": "مستوى الصوت الافتراضي",
|
||||
"labelAnnouncementChannel": "قناة الإعلانات",
|
||||
"labelRestrictVolume": "تقييد مستوى الصوت",
|
||||
"labelAutojoinChannel": "قناة الانضمام التلقائي",
|
||||
"noDescription": "لا يوجد وصف متاح.",
|
||||
"validValues": "**القيم الصالحة:** {{values}}",
|
||||
"validRange": "**النطاق الصالح:** {{min}}–{{max}}",
|
||||
"currentValue": "**القيمة الحالية:**",
|
||||
"defaultValue": "**الافتراضي:**",
|
||||
"settingTitle": "⚙️ {{setting}}",
|
||||
"savedChannel": "تم حفظ القناة: <#{{channel}}>",
|
||||
"savedChannels": "القنوات المحفوظة ({{count}}): {{channels}}",
|
||||
"statusDisabled": "❌ معطّل",
|
||||
"savedChannelsNone": "القنوات المحفوظة: لا يوجد",
|
||||
"modeAuto": "🔄 تلقائي",
|
||||
"modeOn": "✅ تشغيل",
|
||||
"modeOff": "❌ إيقاف",
|
||||
"channelsLabel": "{{count}} قناة",
|
||||
"channelsLabelPlural": "{{count}} قنوات",
|
||||
"thisServer": "هذا الخادم"
|
||||
},
|
||||
"shuffle": {
|
||||
"emptyQueue": "لا يوجد شيء لخلطه في قائمة الانتظار.",
|
||||
|
||||
@@ -173,7 +173,11 @@
|
||||
"errorStreaming": "❌ هەڵە لە پەخشکردنی **{{title}}** — تێپەڕاندن.",
|
||||
"successfullyLeft": "✅ بە سەرکەوتوویی دەرچوو",
|
||||
"voiceSelectionInvalid": "کەناڵی دەنگی نادروست. دووبارە هەوڵبدەرەوە یان 'x' بنێرە.",
|
||||
"voiceChannelRequired": "❌ تکایە سەرەتا بەشداری **کەناڵێکی دەنگی** بکە پێش بەکارهێنانی ئەم فەرمانە!"
|
||||
"voiceChannelRequired": "❌ تکایە سەرەتا بەشداری **کەناڵێکی دەنگی** بکە پێش بەکارهێنانی ئەم فەرمانە!",
|
||||
"joinPermissionError": "❌ مۆڵەتی پێوەستبوون بە <#{{channel}}>م نییە. تکایە مۆڵەتی **پەیوەستبوون**م لەو کەناڵەدا بدە.",
|
||||
"joinFailedPermissions": "❌ سەرکەوتوو نەبوو لە پەیوەستبوون بە کەناڵی دەنگی — مۆڵەتی پێویست نییە. تکایە دڵنیا ببەرەوە لەوەی مۆڵەتی **پەیوەستبوون** و **دەنگدان**م هەیە.",
|
||||
"joinFailedGeneric": "❌ سەرکەوتوو نەبوو لە پەیوەستبوون بە کەناڵی دەنگی. تکایە دووبارە هەوڵبدەرەوە.",
|
||||
"joinFailedNotFound": "❌ ئەو کەناڵە دەنگییە نەدۆزرایەوە."
|
||||
},
|
||||
"clear": {
|
||||
"cleared": "🗑️ ڕیزبەندییەکە پاککرایەوە."
|
||||
@@ -232,7 +236,9 @@
|
||||
"noVoiceChannel": "❌ تۆ لە کەناڵێکی دەنگیدا نیت. تکایە سەرەتا بەشداری یەکێک بکە، یان کەناڵێک دیاریبکە: `{{prefix}}join <#کەناڵ>`",
|
||||
"voiceChannelNotFound": "❌ نەتوانرا ئەو کەناڵی دەنگییە بدۆزرێتەوە. مەنتشنێک وەک `<#channelid>` یان ناوی کەناڵەکەی تەواو تاقی بکەرەوە.",
|
||||
"autoLeaveInactive": "لە کەناڵی <#{{channel}}> دەرچوو بەهۆی بێچالاکبوون.",
|
||||
"autoLeaveInactive247": "لە کەناڵی <#{{channel}}> دەرچوو بەهۆی بێچالاکبوون.\nئەگەر دەتەوێت لە دەنگ بمێنیتەوە، `{{prefix}}247 on/auto` بەکاربهێنە"
|
||||
"autoLeaveInactive247": "لە کەناڵی <#{{channel}}> دەرچوو بەهۆی بێچالاکبوون.\nئەگەر دەتەوێت لە دەنگ بمێنیتەوە، `{{prefix}}247 on/auto` بەکاربهێنە",
|
||||
"joinFailedPerms": "❌ مۆڵەتی پێوەستبوون بە <#{{channel}}>م نییە. تکایە دڵنیا ببەرەوە لەوەی مۆڵەتی **پەیوەستبوون**م هەیە.",
|
||||
"voiceChannelUnknown": "کەناڵی دەنگی نەناسراو"
|
||||
},
|
||||
"leave": {
|
||||
"noVoiceChannel": "⚠️ تکایە سەرەتا بەشداری کەناڵێکی دەنگی بکە.",
|
||||
@@ -251,6 +257,15 @@
|
||||
"upNext": " ▶",
|
||||
"queueTitle": "🎧 ڕیزبەندی"
|
||||
},
|
||||
"queue": {
|
||||
"empty": "ڕیزبەندییەکە بەتاڵە.",
|
||||
"indexOutOfBounds": "ئیندێکس لە دەرەوەی سنوورە",
|
||||
"removed": "**{{title}}** بە سەرکەوتوویی لە ڕیزبەندییەکە لابرا.",
|
||||
"sourceOutOfBounds": "ئیندێکسی سەرچاوە لە دەرەوەی سنوورە",
|
||||
"targetOutOfBounds": "ئیندێکسی ئامانج لە دەرەوەی سنوورە",
|
||||
"alreadyInPosition": "تراکەکە پێشتر لەو شوێنەدایە",
|
||||
"moved": "**{{title}}** لە شوێنی {{from}} گواسترایەوە بۆ شوێنی {{to}}."
|
||||
},
|
||||
"loop": {
|
||||
"invalidChoice": "'{{choice}}' دروست نییە. `song` یان `queue` بەکاربهێنە",
|
||||
"songActivated": "🔂 لووپی گۆرانی چالاک کرا",
|
||||
@@ -419,7 +434,34 @@
|
||||
"helpShortcuts": "**کورتکراوەکان:** `{{prefix}}prefix`، `{{prefix}}247`",
|
||||
"serverTitle": "⚙️ ڕێکخستنەکانی سێرڤەر",
|
||||
"serverHeader": "سێرڤەر: **{{name}}**",
|
||||
"shortcutsHint": "کورتکراوەکان: `{{prefix}}247`، `{{prefix}}prefix`\n`{{prefix}}settings help <ڕێکخستن>` بەکاربهێنە بۆ زانینی زیاتر دەربارەی هەر ڕێکخستنێک."
|
||||
"shortcutsHint": "کورتکراوەکان: `{{prefix}}247`، `{{prefix}}prefix`\n`{{prefix}}settings help <ڕێکخستن>` بەکاربهێنە بۆ زانینی زیاتر دەربارەی هەر ڕێکخستنێک.",
|
||||
"enabled": "✅ چالاک",
|
||||
"disabled": "❌ ناچالاک",
|
||||
"label247": "دۆخی 24/7",
|
||||
"labelPrefix": "پێشگر",
|
||||
"labelSongAnnouncements": "ڕاگەیاندنی گۆرانی",
|
||||
"labelPfp": "شێوازی وێنەی بۆت",
|
||||
"labelLocale": "زمان",
|
||||
"labelVolume": "ئاستی دەنگی بنەڕەتی",
|
||||
"labelAnnouncementChannel": "کەنالی ڕاگەیاندن",
|
||||
"labelRestrictVolume": "سنووردارکردنی ئاستی دەنگ",
|
||||
"labelAutojoinChannel": "کەنالی خۆکار بەشداریکردن",
|
||||
"noDescription": "هیچ وەسفێک بەردەست نییە.",
|
||||
"validValues": "**بەهای دروست:** {{values}}",
|
||||
"validRange": "**مەودای دروست:** {{min}}–{{max}}",
|
||||
"currentValue": "**بەهای ئێستا:**",
|
||||
"defaultValue": "**بنەڕەتی:**",
|
||||
"settingTitle": "⚙️ {{setting}}",
|
||||
"savedChannel": "کەنالی پاشەکەوتکراو: <#{{channel}}>",
|
||||
"savedChannels": "کەناڵە پاشەکەوتکراوەکان ({{count}}): {{channels}}",
|
||||
"statusDisabled": "❌ ناچالاک",
|
||||
"savedChannelsNone": "کەناڵە پاشەکەوتکراوەکان: هیچ",
|
||||
"modeAuto": "🔄 خۆکار",
|
||||
"modeOn": "✅ چالاک",
|
||||
"modeOff": "❌ ناچالاک",
|
||||
"channelsLabel": "{{count}} کەناڵ",
|
||||
"channelsLabelPlural": "{{count}} کەناڵ",
|
||||
"thisServer": "ئەم سێرڤەرە"
|
||||
},
|
||||
"shuffle": {
|
||||
"emptyQueue": "هیچ شتێک نییە لە ڕیزبەندییەکەدا بۆ تێکەڵکردن.",
|
||||
|
||||
@@ -173,7 +173,11 @@
|
||||
"errorStreaming": "❌ Fehler beim Streamen von **{{title}}** — wird übersprungen.",
|
||||
"successfullyLeft": "✅ Erfolgreich verlassen",
|
||||
"voiceSelectionInvalid": "Ungültiger Sprachkanal. Versuche es erneut oder tippe `x`.",
|
||||
"voiceChannelRequired": "❌ Bitte trete zuerst einem **Sprachkanal** bei, bevor du diesen Befehl verwendest!"
|
||||
"voiceChannelRequired": "❌ Bitte trete zuerst einem **Sprachkanal** bei, bevor du diesen Befehl verwendest!",
|
||||
"joinPermissionError": "❌ Ich habe keine Berechtigung, <#{{channel}}> beizutreten. Bitte gib mir die **Verbinden**-Berechtigung in diesem Kanal.",
|
||||
"joinFailedPermissions": "❌ Beitritt zum Sprachkanal fehlgeschlagen — fehlende Berechtigungen. Bitte stelle sicher, dass ich die **Verbinden**- und **Sprechen**-Berechtigungen habe.",
|
||||
"joinFailedGeneric": "❌ Beitritt zum Sprachkanal fehlgeschlagen. Bitte versuche es erneut.",
|
||||
"joinFailedNotFound": "❌ Dieser Sprachkanal wurde nicht gefunden."
|
||||
},
|
||||
"clear": {
|
||||
"cleared": "🗑️ Warteschlange geleert."
|
||||
@@ -232,7 +236,9 @@
|
||||
"noVoiceChannel": "❌ Du bist in keinem Sprachkanal. Bitte trete zuerst einem bei oder gib einen Kanal an: `{{prefix}}join <#Kanal>`",
|
||||
"voiceChannelNotFound": "❌ Konnte diesen Sprachkanal nicht finden. Versuche eine Erwähnung wie `<#Kanal-ID>` oder den genauen Kanalnamen.",
|
||||
"autoLeaveInactive": "Kanal <#{{channel}}> wegen Inaktivität verlassen.",
|
||||
"autoLeaveInactive247": "Kanal <#{{channel}}> wegen Inaktivität verlassen.\nWenn ich im Sprachkanal bleiben soll, nutze `{{prefix}}247 on/auto`"
|
||||
"autoLeaveInactive247": "Kanal <#{{channel}}> wegen Inaktivität verlassen.\nWenn ich im Sprachkanal bleiben soll, nutze `{{prefix}}247 on/auto`",
|
||||
"joinFailedPerms": "❌ Ich habe keine Berechtigung, <#{{channel}}> beizutreten. Bitte prüfe, ob ich die **Verbinden**-Berechtigung habe.",
|
||||
"voiceChannelUnknown": "unbekannter Sprachkanal"
|
||||
},
|
||||
"leave": {
|
||||
"noVoiceChannel": "⚠️ Bitte trete zuerst einem Sprachkanal bei.",
|
||||
@@ -251,6 +257,15 @@
|
||||
"upNext": " ▶",
|
||||
"queueTitle": "🎧 Warteschlange"
|
||||
},
|
||||
"queue": {
|
||||
"empty": "Die Warteschlange ist leer.",
|
||||
"indexOutOfBounds": "Index außerhalb des Bereichs",
|
||||
"removed": "**{{title}}** erfolgreich aus der Warteschlange entfernt.",
|
||||
"sourceOutOfBounds": "Quellindex außerhalb des Bereichs",
|
||||
"targetOutOfBounds": "Zielindex außerhalb des Bereichs",
|
||||
"alreadyInPosition": "Der Track ist bereits an dieser Position",
|
||||
"moved": "**{{title}}** von Position {{from}} nach {{to}} verschoben."
|
||||
},
|
||||
"loop": {
|
||||
"invalidChoice": "'{{choice}}' ist ungültig. Nutze `song` oder `queue`",
|
||||
"songActivated": "🔂 Song-Schleife aktiviert",
|
||||
@@ -419,7 +434,34 @@
|
||||
"helpShortcuts": "**Abkürzungen:** `{{prefix}}prefix`, `{{prefix}}247`",
|
||||
"serverTitle": "⚙️ Server-Einstellungen",
|
||||
"serverHeader": "Server: **{{name}}**",
|
||||
"shortcutsHint": "Abkürzungen: `{{prefix}}247`, `{{prefix}}prefix`\nNutze `{{prefix}}settings help <Einstellung>` für mehr Infos über jede Einstellung."
|
||||
"shortcutsHint": "Abkürzungen: `{{prefix}}247`, `{{prefix}}prefix`\nNutze `{{prefix}}settings help <Einstellung>` für mehr Infos über jede Einstellung.",
|
||||
"enabled": "✅ aktiviert",
|
||||
"disabled": "❌ deaktiviert",
|
||||
"label247": "24/7-Modus",
|
||||
"labelPrefix": "Präfix",
|
||||
"labelSongAnnouncements": "Song-Ankündigungen",
|
||||
"labelPfp": "Bot-Avatar-Stil",
|
||||
"labelLocale": "Sprache",
|
||||
"labelVolume": "Standardlautstärke",
|
||||
"labelAnnouncementChannel": "Ankündigungskanal",
|
||||
"labelRestrictVolume": "Lautstärke einschränken",
|
||||
"labelAutojoinChannel": "Autojoin-Kanal",
|
||||
"noDescription": "Keine Beschreibung verfügbar.",
|
||||
"validValues": "**Gültige Werte:** {{values}}",
|
||||
"validRange": "**Gültiger Bereich:** {{min}}–{{max}}",
|
||||
"currentValue": "**Aktueller Wert:**",
|
||||
"defaultValue": "**Standard:**",
|
||||
"settingTitle": "⚙️ {{setting}}",
|
||||
"savedChannel": "Kanal gespeichert: <#{{channel}}>",
|
||||
"savedChannels": "Gespeicherte Kanäle ({{count}}): {{channels}}",
|
||||
"statusDisabled": "❌ deaktiviert",
|
||||
"savedChannelsNone": "Gespeicherte Kanäle: keine",
|
||||
"modeAuto": "🔄 automatisch",
|
||||
"modeOn": "✅ an",
|
||||
"modeOff": "❌ aus",
|
||||
"channelsLabel": "{{count}} Kanal",
|
||||
"channelsLabelPlural": "{{count}} Kanäle",
|
||||
"thisServer": "dieser Server"
|
||||
},
|
||||
"shuffle": {
|
||||
"emptyQueue": "Es gibt nichts zum Mischen in der Warteschlange.",
|
||||
|
||||
@@ -173,7 +173,11 @@
|
||||
"errorStreaming": "❌ Error streaming **{{title}}** — skipping.",
|
||||
"successfullyLeft": "✅ Successfully Left",
|
||||
"voiceSelectionInvalid": "Invalid voice channel. Try again or type `x`.",
|
||||
"voiceChannelRequired": "❌ Please join a **voice channel** first before using this command!"
|
||||
"voiceChannelRequired": "❌ Please join a **voice channel** first before using this command!",
|
||||
"joinPermissionError": "❌ I don't have permission to join <#{{channel}}>. Please give me the **Connect** permission in that channel.",
|
||||
"joinFailedPermissions": "❌ Failed to join voice channel — missing permissions. Please make sure I have **Connect** and **Speak** permissions.",
|
||||
"joinFailedGeneric": "❌ Failed to join voice channel. Please try again.",
|
||||
"joinFailedNotFound": "❌ Could not find that voice channel."
|
||||
},
|
||||
"clear": {
|
||||
"cleared": "🗑️ Queue cleared."
|
||||
@@ -232,7 +236,9 @@
|
||||
"noVoiceChannel": "❌ You're not in a voice channel. Please join one first, or specify a channel: `{{prefix}}join <#channel>`",
|
||||
"voiceChannelNotFound": "❌ Couldn't find that voice channel. Try using a mention like `<#channelid>` or the exact channel name.",
|
||||
"autoLeaveInactive": "Left channel <#{{channel}}> because of inactivity.",
|
||||
"autoLeaveInactive247": "Left channel <#{{channel}}> because of inactivity.\nIf you want me to stay in voice, use `{{prefix}}247 on/auto`"
|
||||
"autoLeaveInactive247": "Left channel <#{{channel}}> because of inactivity.\nIf you want me to stay in voice, use `{{prefix}}247 on/auto`",
|
||||
"joinFailedPerms": "❌ I don't have permission to join <#{{channel}}>. Please check that I have the **Connect** permission.",
|
||||
"voiceChannelUnknown": "unknown voice channel"
|
||||
},
|
||||
"leave": {
|
||||
"noVoiceChannel": "⚠️ Please join a voice channel first.",
|
||||
@@ -258,6 +264,15 @@
|
||||
"queueActivated": "🔁 Queue loop activated",
|
||||
"queueDisabled": "➡️ Queue loop disabled"
|
||||
},
|
||||
"queue": {
|
||||
"empty": "The queue is empty.",
|
||||
"indexOutOfBounds": "Index out of bounds",
|
||||
"removed": "Successfully removed **{{title}}** from the queue.",
|
||||
"sourceOutOfBounds": "Source index out of bounds",
|
||||
"targetOutOfBounds": "Target index out of bounds",
|
||||
"alreadyInPosition": "Track is already in that position",
|
||||
"moved": "Moved **{{title}}** from position {{from}} to {{to}}."
|
||||
},
|
||||
"lyrics": {
|
||||
"nothingPlaying": "❌ There's nothing playing at the moment.",
|
||||
"searching": "Loading frame Searching lyrics for **{{title}}**...",
|
||||
|
||||
@@ -173,7 +173,11 @@
|
||||
"errorStreaming": "❌ Erro ao transmitir **{{title}}** — pulando.",
|
||||
"successfullyLeft": "✅ Saiu com sucesso",
|
||||
"voiceSelectionInvalid": "Canal de voz inválido. Tente novamente ou digite `x`.",
|
||||
"voiceChannelRequired": "❌ Por favor, entre em um **canal de voz** primeiro antes de usar este comando!"
|
||||
"voiceChannelRequired": "❌ Por favor, entre em um **canal de voz** primeiro antes de usar este comando!",
|
||||
"joinPermissionError": "❌ Não tenho permissão para entrar em <#{{channel}}>. Por favor, me dê a permissão de **Conectar** nesse canal.",
|
||||
"joinFailedPermissions": "❌ Falha ao entrar no canal de voz — permissões ausentes. Por favor, certifique-se de que tenho as permissões de **Conectar** e **Falar**.",
|
||||
"joinFailedGeneric": "❌ Falha ao entrar no canal de voz. Por favor, tente novamente.",
|
||||
"joinFailedNotFound": "❌ Não foi possível encontrar esse canal de voz."
|
||||
},
|
||||
"clear": {
|
||||
"cleared": "🗑️ Fila limpa."
|
||||
@@ -232,7 +236,9 @@
|
||||
"noVoiceChannel": "❌ Você não está em um canal de voz. Entre em um primeiro ou especifique um canal: `{{prefix}}join <#canal>`",
|
||||
"voiceChannelNotFound": "❌ Não foi possível encontrar esse canal de voz. Tente usar uma menção como `<#id_do_canal>` ou o nome exato do canal.",
|
||||
"autoLeaveInactive": "Sai do canal <#{{channel}}> por inatividade.",
|
||||
"autoLeaveInactive247": "Sai do canal <#{{channel}}> por inatividade.\nSe quiser que eu permaneça no canal de voz, use `{{prefix}}247 on/auto`"
|
||||
"autoLeaveInactive247": "Sai do canal <#{{channel}}> por inatividade.\nSe quiser que eu permaneça no canal de voz, use `{{prefix}}247 on/auto`",
|
||||
"joinFailedPerms": "❌ Não tenho permissão para entrar em <#{{channel}}>. Por favor, verifique se tenho a permissão de **Conectar**.",
|
||||
"voiceChannelUnknown": "canal de voz desconhecido"
|
||||
},
|
||||
"leave": {
|
||||
"noVoiceChannel": "⚠️ Por favor, entre em um canal de voz primeiro.",
|
||||
@@ -251,6 +257,15 @@
|
||||
"upNext": " ▶",
|
||||
"queueTitle": "🎧 Fila"
|
||||
},
|
||||
"queue": {
|
||||
"empty": "A fila está vazia.",
|
||||
"indexOutOfBounds": "Índice fora do intervalo",
|
||||
"removed": "**{{title}}** removido da fila com sucesso.",
|
||||
"sourceOutOfBounds": "Índice de origem fora do intervalo",
|
||||
"targetOutOfBounds": "Índice de destino fora do intervalo",
|
||||
"alreadyInPosition": "A faixa já está nessa posição",
|
||||
"moved": "**{{title}}** movido da posição {{from}} para {{to}}."
|
||||
},
|
||||
"loop": {
|
||||
"invalidChoice": "'{{choice}}' é inválido. Use `song` ou `queue`",
|
||||
"songActivated": "🔂 Loop de música ativado",
|
||||
@@ -419,7 +434,34 @@
|
||||
"helpShortcuts": "**Atalhos:** `{{prefix}}prefix`, `{{prefix}}247`",
|
||||
"serverTitle": "⚙️ Configurações do Servidor",
|
||||
"serverHeader": "Servidor: **{{name}}**",
|
||||
"shortcutsHint": "Atalhos: `{{prefix}}247`, `{{prefix}}prefix`\nUse `{{prefix}}settings help <config>` para saber mais sobre qualquer configuração."
|
||||
"shortcutsHint": "Atalhos: `{{prefix}}247`, `{{prefix}}prefix`\nUse `{{prefix}}settings help <config>` para saber mais sobre qualquer configuração.",
|
||||
"enabled": "✅ ativado",
|
||||
"disabled": "❌ desativado",
|
||||
"label247": "Modo 24/7",
|
||||
"labelPrefix": "Prefixo",
|
||||
"labelSongAnnouncements": "Anúncios de música",
|
||||
"labelPfp": "Estilo do avatar do bot",
|
||||
"labelLocale": "Idioma",
|
||||
"labelVolume": "Volume padrão",
|
||||
"labelAnnouncementChannel": "Canal de anúncios",
|
||||
"labelRestrictVolume": "Restringir volume",
|
||||
"labelAutojoinChannel": "Canal de auto-entrada",
|
||||
"noDescription": "Nenhuma descrição disponível.",
|
||||
"validValues": "**Valores válidos:** {{values}}",
|
||||
"validRange": "**Intervalo válido:** {{min}}–{{max}}",
|
||||
"currentValue": "**Valor atual:**",
|
||||
"defaultValue": "**Padrão:**",
|
||||
"settingTitle": "⚙️ {{setting}}",
|
||||
"savedChannel": "Canal salvo: <#{{channel}}>",
|
||||
"savedChannels": "Canais salvos ({{count}}): {{channels}}",
|
||||
"statusDisabled": "❌ desativado",
|
||||
"savedChannelsNone": "Canais salvos: nenhum",
|
||||
"modeAuto": "🔄 automático",
|
||||
"modeOn": "✅ ligado",
|
||||
"modeOff": "❌ desligado",
|
||||
"channelsLabel": "{{count}} canal",
|
||||
"channelsLabelPlural": "{{count}} canais",
|
||||
"thisServer": "este servidor"
|
||||
},
|
||||
"shuffle": {
|
||||
"emptyQueue": "Não há nada para embaralhar na fila.",
|
||||
|
||||
Reference in new issue
Block a user