mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
added: Vote-to-skip
This commit is contained in:
1 parent
e315cfbc1d
commit
cc0b438ef6
13 files changed
+206
-40
No files matched your search
@@ -11,6 +11,7 @@ import runnables from "../../settings/runnables.mjs";
|
||||
import {
|
||||
parseBool, displayValue, getGuildName, embed, tWrap, prettifySettingLabel,
|
||||
BOOL_SETTINGS, VALID_LOCALES, VOLUME_MIN, VOLUME_MAX, PREFIX_MAX, SHORTCUTS,
|
||||
VOTE_SKIP_THRESHOLD_MIN, VOTE_SKIP_THRESHOLD_MAX,
|
||||
} from "./utils.mjs";
|
||||
import {
|
||||
get247Channels, save247Channels, build247Panel, disable247, handle247Toggle,
|
||||
@@ -44,6 +45,18 @@ export async function applySet(ctx, message, set, key, rawValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (key === "voteSkipThreshold") {
|
||||
const num = parseInt(rawValue, 10);
|
||||
if (isNaN(num) || num < VOTE_SKIP_THRESHOLD_MIN || num > VOTE_SKIP_THRESHOLD_MAX) {
|
||||
return ctx.t(message, "responses.settings.voteSkipThresholdRange", {
|
||||
min: VOTE_SKIP_THRESHOLD_MIN,
|
||||
max: VOTE_SKIP_THRESHOLD_MAX,
|
||||
});
|
||||
}
|
||||
set.set(key, num);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (key === "locale") {
|
||||
if (!VALID_LOCALES.has(rawValue)) {
|
||||
return ctx.t(message, "responses.settings.invalidLocale", {
|
||||
|
||||
@@ -18,6 +18,8 @@ export const SHORTCUTS = {
|
||||
prefix: "prefix",
|
||||
pfx: "prefix",
|
||||
"247": "stay_247",
|
||||
voteskip: "voteSkip",
|
||||
voteskiplimit: "voteSkipThreshold",
|
||||
};
|
||||
|
||||
/** @private @type {Set<string>} Strings that evaluate to boolean true. */
|
||||
@@ -25,7 +27,7 @@ const BOOL_TRUE = new Set(["true", "1", "yes", "on", "enable", "enabled"]);
|
||||
/** @private @type {Set<string>} Strings that evaluate to boolean false. */
|
||||
const BOOL_FALSE = new Set(["false", "0", "no", "off", "disable", "disabled"]);
|
||||
/** @private @type {Set<string>} Setting keys that use boolean display formatting. */
|
||||
export const BOOL_SETTINGS = new Set(["songAnnouncements"]);
|
||||
export const BOOL_SETTINGS = new Set(["songAnnouncements", "voteSkip"]);
|
||||
|
||||
/** @private @type {Set<string>} Available locale codes, populated at load time. */
|
||||
export let VALID_LOCALES = new Set(["en"]);
|
||||
@@ -38,6 +40,10 @@ export const VOLUME_MAX = 200;
|
||||
export const PREFIX_MAX = 5;
|
||||
/** @private @type {number} Maximum number of 24/7 channels per guild. */
|
||||
export const MAX_247_CHANNELS = 1;
|
||||
/** @private @type {number} Minimum allowed vote-skip threshold (people in channel). */
|
||||
export const VOTE_SKIP_THRESHOLD_MIN = 2;
|
||||
/** @private @type {number} Maximum allowed vote-skip threshold (people in channel). */
|
||||
export const VOTE_SKIP_THRESHOLD_MAX = 50;
|
||||
|
||||
/**
|
||||
* Replace the set of known locale codes (called by the settings command
|
||||
@@ -132,6 +138,8 @@ export function prettifySettingLabel(key, t, guildId) {
|
||||
locale: "responses.settings.labelLocale",
|
||||
stay_247: "responses.settings.label247",
|
||||
volume: "responses.settings.labelVolume",
|
||||
voteSkip: "responses.settings.labelVoteSkip",
|
||||
voteSkipThreshold: "responses.settings.labelVoteSkipThreshold",
|
||||
};
|
||||
if (localeMap[key] && t && guildId) return t(guildId, localeMap[key]);
|
||||
const fallback = {
|
||||
@@ -141,6 +149,8 @@ export function prettifySettingLabel(key, t, guildId) {
|
||||
locale: "Locale",
|
||||
stay_247: "24/7 mode",
|
||||
volume: "Default volume",
|
||||
voteSkip: "Vote to skip",
|
||||
voteSkipThreshold: "Vote to skip threshold",
|
||||
};
|
||||
return fallback[key] ?? key.replace(/_/g, " ");
|
||||
}
|
||||
+70
-19
@@ -1,11 +1,14 @@
|
||||
/**
|
||||
* @module commands/skip
|
||||
* @description Skip the currently playing track.
|
||||
* @description Skip the currently playing track. Solo or duo listeners skip
|
||||
* instantly; once 3+ (configurable) people are in the voice channel, a
|
||||
* majority vote is required — unless the server has disabled vote-skip.
|
||||
*/
|
||||
|
||||
import { CommandBuilder } from "../src/commands/index.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { getGlobalColor } from "../src/ui/index.mjs";
|
||||
import { getGlobalColor, cleanId } from "../src/ui/index.mjs";
|
||||
import { countHumansInChannel } from "../src/voice/VoiceStateResolver.mjs";
|
||||
|
||||
/** @type {CommandBuilder} @description Command definition for the skip command. */
|
||||
export const command = new CommandBuilder()
|
||||
@@ -14,17 +17,8 @@ export const command = new CommandBuilder()
|
||||
.addAliases("s")
|
||||
.setCategory("music");
|
||||
|
||||
/**
|
||||
* @async
|
||||
* Run handler for the skip command.
|
||||
* Skips the current track and shows which track was skipped.
|
||||
* @param {object} message - The command message wrapper.
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
export async function run(message) {
|
||||
const p = await this.getPlayer(message);
|
||||
if (!p) return;
|
||||
|
||||
/** @private Perform the actual skip and reply with what was skipped. @param {object} ctx @param {object} message @param {Player} p @returns {Promise<void>} */
|
||||
async function doSkip(ctx, message, p) {
|
||||
const current = p.queue.getCurrent();
|
||||
const skippedTitle = current?.title ?? null;
|
||||
const skippedLink = current ? (current.spotifyUrl || current.url || "") : "";
|
||||
@@ -36,12 +30,69 @@ export async function run(message) {
|
||||
}
|
||||
|
||||
const desc = skippedTitle
|
||||
? this.t(message, "responses.skip.skippedTrack", { title: skippedTitle, url: skippedLink })
|
||||
: this.t(message, "responses.skip.skipped");
|
||||
? ctx.t(message, "responses.skip.skippedTrack", { title: skippedTitle, url: skippedLink })
|
||||
: ctx.t(message, "responses.skip.skipped");
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setDescription(desc)
|
||||
;
|
||||
message.reply({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(desc)] }).catch(() => {});
|
||||
}
|
||||
|
||||
/**
|
||||
* @async
|
||||
* Run handler for the skip command.
|
||||
* Skips instantly for 1-2 listeners; requires a majority vote for 3+
|
||||
* (threshold configurable per server via `voteSkipThreshold`, and the whole
|
||||
* system can be turned off via `voteSkip`).
|
||||
* @param {object} message - The command message wrapper.
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
export async function run(message) {
|
||||
const p = await this.getPlayer(message);
|
||||
if (!p) return;
|
||||
|
||||
const current = p.queue.getCurrent();
|
||||
if (!p.connection || !current) {
|
||||
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(message, "responses._common.nothingPlaying"));
|
||||
return message.reply({ embeds: [embed] });
|
||||
}
|
||||
|
||||
const guildId = cleanId(p._guildId) || cleanId(message?.channel?.guildId ?? message?.message?.guildId);
|
||||
const channelId = cleanId(p._channelId ?? p._home247Channel);
|
||||
|
||||
const set = this.getSettings(message);
|
||||
const voteSkipEnabled = set?.get("voteSkip") ?? true;
|
||||
const threshold = Number(set?.get("voteSkipThreshold")) || 3;
|
||||
|
||||
const humanCount = countHumansInChannel({
|
||||
guildId,
|
||||
channelId,
|
||||
client: this.client,
|
||||
voiceCache: this.voiceCache,
|
||||
observedVoiceUsers: this.observedVoiceUsers,
|
||||
});
|
||||
|
||||
if (!voteSkipEnabled || humanCount < threshold) {
|
||||
return doSkip(this, message, p);
|
||||
}
|
||||
|
||||
const userId = message?.author?.id ?? message?.member?.user?.id;
|
||||
if (!userId) return doSkip(this, message, p);
|
||||
|
||||
const needed = Math.floor(humanCount / 2) + 1;
|
||||
|
||||
if (p._skipVotes.has(userId)) {
|
||||
const embed = new EmbedBuilder().setColor(getGlobalColor())
|
||||
.setDescription(this.t(message, "responses.skip.alreadyVoted", { votes: p._skipVotes.size, needed }));
|
||||
return message.reply({ embeds: [embed] }).catch(() => {});
|
||||
}
|
||||
|
||||
p._skipVotes.add(userId);
|
||||
|
||||
if (p._skipVotes.size >= needed) {
|
||||
p._skipVotes.clear();
|
||||
return doSkip(this, message, p);
|
||||
}
|
||||
|
||||
const embed = new EmbedBuilder().setColor(getGlobalColor())
|
||||
.setDescription(this.t(message, "responses.skip.voteAdded", { votes: p._skipVotes.size, needed }));
|
||||
message.reply({ embeds: [embed] }).catch(() => {});
|
||||
}
|
||||
@@ -178,6 +178,7 @@ const PlaybackMixin = {
|
||||
this.announceSong(songData);
|
||||
if (songData.type === "radio") this._radioAnnounced = true;
|
||||
}
|
||||
this._skipVotes.clear();
|
||||
this.emit("startplay", songData);
|
||||
|
||||
try {
|
||||
|
||||
@@ -54,6 +54,9 @@ class Player extends EventEmitter {
|
||||
/** @private @type {string|null} The home channel of a 24/7 spawn. */
|
||||
_home247Channel = null;
|
||||
|
||||
/** @private @type {Set<string>} User IDs who have voted to skip the current track. Reset whenever a new track starts. */
|
||||
_skipVotes = new Set();
|
||||
|
||||
/** @type {Queue} */
|
||||
queue = null;
|
||||
client = null;
|
||||
|
||||
@@ -110,6 +110,60 @@ export function hasHumansInChannel({ guildId, channelId, client, voiceCache, obs
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Count the number of distinct non-bot humans currently in a voice channel.
|
||||
* Checks, in order: VoiceStateCache (exact count) → guild voice_states (live
|
||||
* count) → ObservedVoiceUsers (falls back to a 0/1 presence check only).
|
||||
* @param {object} opts
|
||||
* @param {string} opts.guildId
|
||||
* @param {string} opts.channelId
|
||||
* @param {object} [opts.client] - client with `guilds`.
|
||||
* @param {VoiceStateCache} [opts.voiceCache]
|
||||
* @param {Map} [opts.observedVoiceUsers]
|
||||
* @returns {number}
|
||||
*/
|
||||
export function countHumansInChannel({ guildId, channelId, client, voiceCache, observedVoiceUsers }) {
|
||||
if (!channelId || !guildId) return 0;
|
||||
|
||||
if (voiceCache && typeof voiceCache.getHumanCount === "function") {
|
||||
return voiceCache.getHumanCount(guildId, channelId);
|
||||
}
|
||||
|
||||
if (client) {
|
||||
try {
|
||||
const guild = client.guilds?.get?.(guildId);
|
||||
if (guild) {
|
||||
const users = new Set();
|
||||
for (const vs of iterateVoiceStates(guild)) {
|
||||
if (vs.channelId === channelId && !vs.isBot) users.add(vs.userId);
|
||||
}
|
||||
return users.size;
|
||||
}
|
||||
} catch (e) {
|
||||
logger.warn("[VoiceStateResolver] countHumansInChannel guild fallback failed:", e?.message);
|
||||
}
|
||||
}
|
||||
|
||||
if (observedVoiceUsers) {
|
||||
try {
|
||||
const users = new Set();
|
||||
const iterator = typeof observedVoiceUsers.iterateHumanUsers === "function"
|
||||
? observedVoiceUsers.iterateHumanUsers()
|
||||
: observedVoiceUsers.entries();
|
||||
for (const [userId, info] of iterator) {
|
||||
if (String(info.guildId ?? "") === guildId && String(info.channelId ?? "") === channelId) {
|
||||
users.add(userId);
|
||||
}
|
||||
}
|
||||
return users.size;
|
||||
} catch (e) {
|
||||
logger.warn("[VoiceStateResolver] countHumansInChannel observedVoiceUsers fallback failed:", e?.message);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the set of channel IDs that contain at least one human user.
|
||||
* @param {object} guild - guild object.
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
"pfp": "default",
|
||||
"locale": "en",
|
||||
"stay_247": "none",
|
||||
"volume": 100
|
||||
"volume": 100,
|
||||
"voteSkip": true,
|
||||
"voteSkipThreshold": 3
|
||||
},
|
||||
"descriptions": {
|
||||
"songAnnouncements": "Whether the bot should announce every song in a new message when it starts playing. Set to `true` or `1` to enable.",
|
||||
@@ -13,6 +15,8 @@
|
||||
"pfp": "What profile picture the bot should use. Presets: `default | dark | light | mono | <custom url>`.",
|
||||
"locale": "The preferred language of your server.",
|
||||
"stay_247": "Join a voice channel and use `$prefix247` to toggle 24/7. The bot stays permanently and auto-rejoins if disconnected. Use `$prefix247 off` to disable.",
|
||||
"volume": "The default playback volume for this server (1-200). Saved automatically when you use $prefixvolume."
|
||||
"volume": "The default playback volume for this server (1-200). Saved automatically when you use $prefixvolume.",
|
||||
"voteSkip": "Whether a majority vote is required to skip when several people are listening. Set to `true` or `1` to enable (default), `false` or `0` to let anyone skip instantly.",
|
||||
"voteSkipThreshold": "The number of people in the voice channel (2-50) at which a skip vote is required instead of an instant skip. Default is `3`."
|
||||
}
|
||||
}
|
||||
@@ -475,6 +475,7 @@
|
||||
"resetSuccess": "🔄 `{{setting}}` تم إعادة تعيينه إلى القيمة الافتراضية: {{value}}",
|
||||
"mustBeBool": "❌ `{{setting}}` يجب أن يكون قيمة منطقية.\nالمقبولة: `true`، `false`، `on`، `off`، `enable`، `disable`",
|
||||
"volumeRange": "❌ يجب أن يكون مستوى الصوت رقماً بين **1** و **200**.",
|
||||
"voteSkipThresholdRange": "❌ يجب أن يكون حد التصويت للتخطي رقماً بين **{{min}}** و **{{max}}**.",
|
||||
"invalidLocale": "❌ `{{locale}}` ليست لغة مدعومة.\nاللغات المتاحة: {{locales}}",
|
||||
"prefixLength": "❌ يجب أن يكون البادئة بين **1** و **5** أحرف.",
|
||||
"prefixSpaces": "❌ لا يمكن أن تحتوي البادئة على مسافات.",
|
||||
@@ -490,10 +491,10 @@
|
||||
"helpTitle": "⚙️ مساعدة الإعدادات",
|
||||
"helpAvailable": "**الإعدادات المتاحة:** {{settings}}",
|
||||
"helpSubcommands": "**الأوامر الفرعية:**\n• `{{prefix}}settings get` — عرض جميع القيم الحالية\n• `{{prefix}}settings get <إعداد>` — عرض إعداد واحد\n• `{{prefix}}settings set <إعداد> <قيمة>` — تغيير إعداد\n• `{{prefix}}settings reset <إعداد>` — استعادة القيمة الافتراضية\n• `{{prefix}}settings help <إعداد>` — وصف إعداد",
|
||||
"helpShortcuts": "**الاختصارات:** `{{prefix}}prefix`، `{{prefix}}247`",
|
||||
"helpShortcuts": "**الاختصارات:** `{{prefix}}prefix`، `{{prefix}}247`، `{{prefix}}voteskip`، `{{prefix}}voteskiplimit`",
|
||||
"serverTitle": "⚙️ إعدادات الخادم",
|
||||
"serverHeader": "الخادم: **{{name}}**",
|
||||
"shortcutsHint": "الاختصارات: `{{prefix}}247`، `{{prefix}}prefix`\nاستخدم `{{prefix}}settings help <إعداد>` لمعرفة المزيد عن أي إعداد.",
|
||||
"shortcutsHint": "الاختصارات: `{{prefix}}247`، `{{prefix}}prefix`، `{{prefix}}voteskip`، `{{prefix}}voteskiplimit`\nاستخدم `{{prefix}}settings help <إعداد>` لمعرفة المزيد عن أي إعداد.",
|
||||
"enabled": "✅ مفعّل",
|
||||
"disabled": "❌ معطّل",
|
||||
"label247": "وضع 24/7",
|
||||
@@ -502,6 +503,8 @@
|
||||
"labelPfp": "نمط صورة البوت",
|
||||
"labelLocale": "اللغة",
|
||||
"labelVolume": "مستوى الصوت الافتراضي",
|
||||
"labelVoteSkip": "التصويت للتخطي",
|
||||
"labelVoteSkipThreshold": "حد التصويت للتخطي",
|
||||
"labelAnnouncementChannel": "قناة الإعلانات",
|
||||
"labelRestrictVolume": "تقييد مستوى الصوت",
|
||||
"labelAutojoinChannel": "قناة الانضمام التلقائي",
|
||||
@@ -575,7 +578,9 @@
|
||||
"nothingPlaying": "❌ لا يوجد شيء يعمل حالياً!",
|
||||
"skipped": "⏭️ تم التخطي",
|
||||
"skippedTrack": "⏭️ تم تخطي [{{title}}]({{url}})",
|
||||
"skippedToPosition": "⏭️ تم التخطي إلى الموضع {{position}}"
|
||||
"skippedToPosition": "⏭️ تم التخطي إلى الموضع {{position}}",
|
||||
"voteAdded": "🗳️ التصويت للتخطي: **{{votes}}/{{needed}}**. نفّذ الأمر مرة أخرى لإضافة صوتك!",
|
||||
"alreadyVoted": "🗳️ لقد صوّت بالفعل للتخطي! **{{votes}}/{{needed}}** صوت حتى الآن."
|
||||
},
|
||||
"stats": {
|
||||
"title": "بوت Remix الموسيقي",
|
||||
|
||||
@@ -475,6 +475,7 @@
|
||||
"resetSuccess": "🔄 `{{setting}}` گەڕێنرایەوە بۆ بنەڕەتی: {{value}}",
|
||||
"mustBeBool": "❌ `{{setting}}` دەبێت bool بێت.\nقبوڵکراو: `true`، `false`، `on`، `off`، `enable`، `disable`",
|
||||
"volumeRange": "❌ ئاستی دەنگ دەبێت ژمارەیەک لەنێوان **1** و **200** بێت.",
|
||||
"voteSkipThresholdRange": "❌ سنووری دەنگدان بۆ تێپەڕین دەبێت ژمارەیەک لەنێوان **{{min}}** و **{{max}}** بێت.",
|
||||
"invalidLocale": "❌ `{{locale}}` زمانێکی پشتگیرینەکراو نییە.\nزمانە بەردەستەکان: {{locales}}",
|
||||
"prefixLength": "❌ پێشگر دەبێت لەنێوان **1** و **5** پیت بێت.",
|
||||
"prefixSpaces": "❌ پێشگر ناتوانێت بۆشایی هەبێت.",
|
||||
@@ -490,10 +491,10 @@
|
||||
"helpTitle": "⚙️ یارمەتی ڕێکخستنەکان",
|
||||
"helpAvailable": "**ڕێکخستنە بەردەستەکان:** {{settings}}",
|
||||
"helpSubcommands": "**فەرمانە لاوەکییەکان:**\n• `{{prefix}}settings get` — لیستی هەموو بەهای ئێستا\n• `{{prefix}}settings get <ڕێکخستن>` — بینینی ڕێکخستنێک\n• `{{prefix}}settings set <ڕێکخستن> <بەها>` — گۆڕینی ڕێکخستن\n• `{{prefix}}settings reset <ڕێکخستن>` — گەڕاندنەوەی بەهای بنەڕەتی\n• `{{prefix}}settings help <ڕێکخستن>` — ڕوونکردنەوەی ڕێکخستن",
|
||||
"helpShortcuts": "**کورتکراوەکان:** `{{prefix}}prefix`، `{{prefix}}247`",
|
||||
"helpShortcuts": "**کورتکراوەکان:** `{{prefix}}prefix`، `{{prefix}}247`، `{{prefix}}voteskip`، `{{prefix}}voteskiplimit`",
|
||||
"serverTitle": "⚙️ ڕێکخستنەکانی سێرڤەر",
|
||||
"serverHeader": "سێرڤەر: **{{name}}**",
|
||||
"shortcutsHint": "کورتکراوەکان: `{{prefix}}247`، `{{prefix}}prefix`\n`{{prefix}}settings help <ڕێکخستن>` بەکاربهێنە بۆ زانینی زیاتر دەربارەی هەر ڕێکخستنێک.",
|
||||
"shortcutsHint": "کورتکراوەکان: `{{prefix}}247`، `{{prefix}}prefix`، `{{prefix}}voteskip`، `{{prefix}}voteskiplimit`\n`{{prefix}}settings help <ڕێکخستن>` بەکاربهێنە بۆ زانینی زیاتر دەربارەی هەر ڕێکخستنێک.",
|
||||
"enabled": "✅ چالاک",
|
||||
"disabled": "❌ ناچالاک",
|
||||
"label247": "دۆخی 24/7",
|
||||
@@ -502,6 +503,8 @@
|
||||
"labelPfp": "شێوازی وێنەی بۆت",
|
||||
"labelLocale": "زمان",
|
||||
"labelVolume": "ئاستی دەنگی بنەڕەتی",
|
||||
"labelVoteSkip": "دەنگدان بۆ تێپەڕین",
|
||||
"labelVoteSkipThreshold": "سنووری دەنگدان بۆ تێپەڕین",
|
||||
"labelAnnouncementChannel": "کەنالی ڕاگەیاندن",
|
||||
"labelRestrictVolume": "سنووردارکردنی ئاستی دەنگ",
|
||||
"labelAutojoinChannel": "کەنالی خۆکار بەشداریکردن",
|
||||
@@ -575,7 +578,9 @@
|
||||
"nothingPlaying": "❌ هیچ شتێک پەخش ناکرێت لە ئێستادا!",
|
||||
"skipped": "⏭️ تێپەڕا",
|
||||
"skippedTrack": "⏭️ [{{title}}]({{url}}) تێپەڕا",
|
||||
"skippedToPosition": "⏭️ تێپەڕا بۆ شوێنی {{position}}"
|
||||
"skippedToPosition": "⏭️ تێپەڕا بۆ شوێنی {{position}}",
|
||||
"voteAdded": "🗳️ دەنگدان بۆ تێپەڕین: **{{votes}}/{{needed}}**. فەرمانەکە دووبارە بەکاربهێنە بۆ زیادکردنی دەنگت!",
|
||||
"alreadyVoted": "🗳️ پێشتر دەنگت داوە بۆ تێپەڕین! **{{votes}}/{{needed}}** دەنگ تا ئێستا."
|
||||
},
|
||||
"stats": {
|
||||
"title": "بۆتی موزیکی Remix",
|
||||
|
||||
@@ -475,6 +475,7 @@
|
||||
"resetSuccess": "🔄 `{{setting}}` wurde auf den Standardwert zurückgesetzt: {{value}}",
|
||||
"mustBeBool": "❌ `{{setting}}` muss ein boolescher Wert sein.\nAkzeptiert: `true`, `false`, `on`, `off`, `enable`, `disable`",
|
||||
"volumeRange": "❌ Lautstärke muss eine Zahl zwischen **1** und **200** sein.",
|
||||
"voteSkipThresholdRange": "❌ Der Vote-Skip-Schwellenwert muss eine Zahl zwischen **{{min}}** und **{{max}}** sein.",
|
||||
"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.",
|
||||
@@ -490,10 +491,10 @@
|
||||
"helpTitle": "⚙️ Einstellungen-Hilfe",
|
||||
"helpAvailable": "**Verfügbare Einstellungen:** {{settings}}",
|
||||
"helpSubcommands": "**Unterbefehle:**\n• `{{prefix}}settings get` — alle aktuellen Werte anzeigen\n• `{{prefix}}settings get <Einstellung>` — einzelne Einstellung anzeigen\n• `{{prefix}}settings set <Einstellung> <Wert>` — Einstellung ändern\n• `{{prefix}}settings reset <Einstellung>` — Standardwert wiederherstellen\n• `{{prefix}}settings help <Einstellung>` — Einstellung beschreiben",
|
||||
"helpShortcuts": "**Abkürzungen:** `{{prefix}}prefix`, `{{prefix}}247`",
|
||||
"helpShortcuts": "**Abkürzungen:** `{{prefix}}prefix`, `{{prefix}}247`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`",
|
||||
"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`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`\nNutze `{{prefix}}settings help <Einstellung>` für mehr Infos über jede Einstellung.",
|
||||
"enabled": "✅ aktiviert",
|
||||
"disabled": "❌ deaktiviert",
|
||||
"label247": "24/7-Modus",
|
||||
@@ -502,6 +503,8 @@
|
||||
"labelPfp": "Bot-Avatar-Stil",
|
||||
"labelLocale": "Sprache",
|
||||
"labelVolume": "Standardlautstärke",
|
||||
"labelVoteSkip": "Abstimmung zum Überspringen",
|
||||
"labelVoteSkipThreshold": "Schwellenwert für Skip-Abstimmung",
|
||||
"labelAnnouncementChannel": "Ankündigungskanal",
|
||||
"labelRestrictVolume": "Lautstärke einschränken",
|
||||
"labelAutojoinChannel": "Autojoin-Kanal",
|
||||
@@ -575,7 +578,9 @@
|
||||
"nothingPlaying": "❌ Es wird gerade nichts abgespielt!",
|
||||
"skipped": "⏭️ Übersprungen",
|
||||
"skippedTrack": "⏭️ [{{title}}]({{url}}) übersprungen",
|
||||
"skippedToPosition": "⏭️ Zur Position {{position}} gesprungen"
|
||||
"skippedToPosition": "⏭️ Zur Position {{position}} gesprungen",
|
||||
"voteAdded": "🗳️ Abstimmung zum Überspringen: **{{votes}}/{{needed}}**. Führe den Befehl erneut aus, um deine Stimme hinzuzufügen!",
|
||||
"alreadyVoted": "🗳️ Du hast bereits fürs Überspringen gestimmt! **{{votes}}/{{needed}}** Stimmen bisher."
|
||||
},
|
||||
"stats": {
|
||||
"title": "Remix Musik-Bot",
|
||||
|
||||
@@ -583,6 +583,7 @@
|
||||
"resetSuccess": "🔄 `{{setting}}` has been reset to its default: {{value}}",
|
||||
"mustBeBool": "❌ `{{setting}}` must be a boolean.\nAccepted: `true`, `false`, `on`, `off`, `enable`, `disable`",
|
||||
"volumeRange": "❌ Volume must be a number between **1** and **200**.",
|
||||
"voteSkipThresholdRange": "❌ Vote-skip threshold must be a number between **{{min}}** and **{{max}}**.",
|
||||
"invalidLocale": "❌ `{{locale}}` is not a supported locale.\nAvailable locales: {{locales}}",
|
||||
"prefixLength": "❌ Prefix must be between **1** and **5** characters.",
|
||||
"prefixSpaces": "❌ Prefix cannot contain spaces.",
|
||||
@@ -598,10 +599,10 @@
|
||||
"helpTitle": "⚙️ Settings Help",
|
||||
"helpAvailable": "**Available settings:** {{settings}}",
|
||||
"helpSubcommands": "**Subcommands:**\n• `{{prefix}}settings get` — list all current values\n• `{{prefix}}settings get <setting>` — view a single setting\n• `{{prefix}}settings set <setting> <value>` — change a setting\n• `{{prefix}}settings reset <setting>` — restore default value\n• `{{prefix}}settings help <setting>` — describe a setting",
|
||||
"helpShortcuts": "**Shortcuts:** `{{prefix}}prefix`, `{{prefix}}247`",
|
||||
"helpShortcuts": "**Shortcuts:** `{{prefix}}prefix`, `{{prefix}}247`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`",
|
||||
"serverTitle": "⚙️ Server Settings",
|
||||
"serverHeader": "Server: **{{name}}**",
|
||||
"shortcutsHint": "Shortcuts: `{{prefix}}247`, `{{prefix}}prefix`\nUse `{{prefix}}settings help <setting>` to learn about any setting.",
|
||||
"shortcutsHint": "Shortcuts: `{{prefix}}247`, `{{prefix}}prefix`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`\nUse `{{prefix}}settings help <setting>` to learn about any setting.",
|
||||
"enabled": "✅ enabled",
|
||||
"disabled": "❌ disabled",
|
||||
"label247": "24/7 mode",
|
||||
@@ -610,6 +611,8 @@
|
||||
"labelPfp": "Bot avatar style",
|
||||
"labelLocale": "Locale",
|
||||
"labelVolume": "Default volume",
|
||||
"labelVoteSkip": "Vote to skip",
|
||||
"labelVoteSkipThreshold": "Vote to skip threshold",
|
||||
"labelAnnouncementChannel": "Announcement channel",
|
||||
"labelRestrictVolume": "Restrict volume",
|
||||
"labelAutojoinChannel": "Autojoin channel",
|
||||
@@ -683,7 +686,9 @@
|
||||
"nothingPlaying": "❌ There's nothing playing at the moment!",
|
||||
"skipped": "⏭️ Skipped",
|
||||
"skippedTrack": "⏭️ Skipped [{{title}}]({{url}})",
|
||||
"skippedToPosition": "⏭️ Skipped to position {{position}}"
|
||||
"skippedToPosition": "⏭️ Skipped to position {{position}}",
|
||||
"voteAdded": "🗳️ Vote to skip: **{{votes}}/{{needed}}**. Run this command again to add your vote!",
|
||||
"alreadyVoted": "🗳️ You've already voted to skip! **{{votes}}/{{needed}}** votes so far."
|
||||
},
|
||||
"stats": {
|
||||
"title": "Remix Music Bot",
|
||||
|
||||
@@ -475,6 +475,7 @@
|
||||
"resetSuccess": "🔄 `{{setting}}` foi redefinido para o padrão: {{value}}",
|
||||
"mustBeBool": "❌ `{{setting}}` deve ser um booleano.\nAceitos: `true`, `false`, `on`, `off`, `enable`, `disable`",
|
||||
"volumeRange": "❌ O volume deve ser um número entre **1** e **200**.",
|
||||
"voteSkipThresholdRange": "❌ O limite de votação para pular deve ser um número entre **{{min}}** e **{{max}}**.",
|
||||
"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.",
|
||||
@@ -490,10 +491,10 @@
|
||||
"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 <config>` — ver uma configuração específica\n• `{{prefix}}settings set <config> <valor>` — alterar uma configuração\n• `{{prefix}}settings reset <config>` — restaurar valor padrão\n• `{{prefix}}settings help <config>` — descrever uma configuração",
|
||||
"helpShortcuts": "**Atalhos:** `{{prefix}}prefix`, `{{prefix}}247`",
|
||||
"helpShortcuts": "**Atalhos:** `{{prefix}}prefix`, `{{prefix}}247`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`",
|
||||
"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`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`\nUse `{{prefix}}settings help <config>` para saber mais sobre qualquer configuração.",
|
||||
"enabled": "✅ ativado",
|
||||
"disabled": "❌ desativado",
|
||||
"label247": "Modo 24/7",
|
||||
@@ -502,6 +503,8 @@
|
||||
"labelPfp": "Estilo do avatar do bot",
|
||||
"labelLocale": "Idioma",
|
||||
"labelVolume": "Volume padrão",
|
||||
"labelVoteSkip": "Votação para pular",
|
||||
"labelVoteSkipThreshold": "Limite de votação para pular",
|
||||
"labelAnnouncementChannel": "Canal de anúncios",
|
||||
"labelRestrictVolume": "Restringir volume",
|
||||
"labelAutojoinChannel": "Canal de auto-entrada",
|
||||
@@ -575,7 +578,9 @@
|
||||
"nothingPlaying": "❌ Não está tocando nada no momento!",
|
||||
"skipped": "⏭️ Pulado",
|
||||
"skippedTrack": "⏭️ Pulado [{{title}}]({{url}})",
|
||||
"skippedToPosition": "⏭️ Pulou para a posição {{position}}"
|
||||
"skippedToPosition": "⏭️ Pulou para a posição {{position}}",
|
||||
"voteAdded": "🗳️ Votação para pular: **{{votes}}/{{needed}}**. Use o comando novamente para adicionar seu voto!",
|
||||
"alreadyVoted": "🗳️ Você já votou para pular! **{{votes}}/{{needed}}** votos até agora."
|
||||
},
|
||||
"stats": {
|
||||
"title": "Bot de Música Remix",
|
||||
|
||||
@@ -572,6 +572,7 @@
|
||||
"resetSuccess": "🔄 `{{setting}}` varsayılan değerine sıfırlandı: {{value}}",
|
||||
"mustBeBool": "❌ `{{setting}}` bir boole değeri olmalıdır.\nKabul edilen: `true`, `false`, `on`, `off`, `enable`, `disable`",
|
||||
"volumeRange": "❌ Ses seviyesi **1** ile **200** arasında bir sayı olmalıdır.",
|
||||
"voteSkipThresholdRange": "❌ Oylama eşiği **{{min}}** ile **{{max}}** arasında bir sayı olmalıdır.",
|
||||
"invalidLocale": "❌ `{{locale}}` desteklenen bir dil değil.\nKullanılabilir diller: {{locales}}",
|
||||
"prefixLength": "❌ Önek **1** ile **5** karakter arasında olmalıdır.",
|
||||
"prefixSpaces": "❌ Önek boşluk içeremez.",
|
||||
@@ -587,10 +588,10 @@
|
||||
"helpTitle": "⚙️ Ayarlar Yardımı",
|
||||
"helpAvailable": "**Kullanılabilir ayarlar:** {{settings}}",
|
||||
"helpSubcommands": "**Alt komutlar:**\n• `{{prefix}}settings get` — tüm mevcut değerleri listele\n• `{{prefix}}settings get <ayar>` — tek bir ayarı görüntüle\n• `{{prefix}}settings set <ayar> <değer>` — bir ayarı değiştir\n• `{{prefix}}settings reset <ayar>` — varsayılan değeri geri yükle\n• `{{prefix}}settings help <ayar>` — bir ayarı açıkla",
|
||||
"helpShortcuts": "**Kısayollar:** `{{prefix}}prefix`, `{{prefix}}247`",
|
||||
"helpShortcuts": "**Kısayollar:** `{{prefix}}prefix`, `{{prefix}}247`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`",
|
||||
"serverTitle": "⚙️ Sunucu Ayarları",
|
||||
"serverHeader": "Sunucu: **{{name}}**",
|
||||
"shortcutsHint": "Kısayollar: `{{prefix}}247`, `{{prefix}}prefix`\nHerhangi bir ayar hakkında bilgi için `{{prefix}}settings help <ayar>` kullanın.",
|
||||
"shortcutsHint": "Kısayollar: `{{prefix}}247`, `{{prefix}}prefix`, `{{prefix}}voteskip`, `{{prefix}}voteskiplimit`\nHerhangi bir ayar hakkında bilgi için `{{prefix}}settings help <ayar>` kullanın.",
|
||||
"247Panel": {
|
||||
"title": "♾️ 24/7 Modu",
|
||||
"noChannelsSaved": "Kayıtlı ses kanalı yok.",
|
||||
@@ -643,6 +644,8 @@
|
||||
"labelPfp": "Bot avatar stili",
|
||||
"labelLocale": "Yerel ayar",
|
||||
"labelVolume": "Varsayılan ses",
|
||||
"labelVoteSkip": "Atlama oylaması",
|
||||
"labelVoteSkipThreshold": "Atlama oylaması eşiği",
|
||||
"labelAnnouncementChannel": "Duyuru kanalı",
|
||||
"labelRestrictVolume": "Ses kısıtlaması",
|
||||
"labelAutojoinChannel": "Otomatik katılma kanalı",
|
||||
@@ -672,7 +675,9 @@
|
||||
"nothingPlaying": "❌ Şu anda çalan bir şey yok!",
|
||||
"skipped": "⏭️ Atlandı",
|
||||
"skippedTrack": "⏭️ [{{title}}]({{url}}) atlandı",
|
||||
"skippedToPosition": "⏭️ {{position}} konumuna atlandı"
|
||||
"skippedToPosition": "⏭️ {{position}} konumuna atlandı",
|
||||
"voteAdded": "🗳️ Atlama oylaması: **{{votes}}/{{needed}}**. Oyunu eklemek için komutu tekrar çalıştır!",
|
||||
"alreadyVoted": "🗳️ Zaten atlamak için oy verdin! Şu ana kadar **{{votes}}/{{needed}}** oy."
|
||||
},
|
||||
"stats": {
|
||||
"title": "Remix Müzik Botu",
|
||||
|
||||
Reference in new issue
Block a user