yt yeah yt

This commit is contained in:
NoLogicAlan committed 2026-05-12 19:05:47 +03:00
1 parent 9cfa8e2e6c
commit 2a301c628d
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -139,7 +139,7 @@ export async function playLastFmCategory(ctx, msg, userId, category, options = {
// Play the first track immediately
const firstTrack = result.tracks[0];
try {
const events = p.play(firstTrack.query, false, "ytm");
const events = p.play(firstTrack.query, false, "yt");
await new Promise((resolve) => {
events.on("message", () => resolve());
events.on("error", () => { failed++; resolve(); });
@@ -155,7 +155,7 @@ export async function playLastFmCategory(ctx, msg, userId, category, options = {
const restTracks = result.tracks.slice(1);
for (const track of restTracks) {
try {
const data = await p.workerJob("generalQuery", { query: track.query, provider: "ytm" });
const data = await p.workerJob("generalQuery", { query: track.query, provider: "yt" });
if (data && data.type !== "error") {
if (data.type === "list") {
p.addManyToQueue(data.data, false);
+1 -1
View File
@@ -46,7 +46,7 @@ export const command = new CommandBuilder()
.setDescription("The search provider. Default: YouTube Music. Or use inline prefix: sp:, dz:, am:, yt:, sc: etc.", "options.play.provider")
.addFlagAliases("p", "u", "use")
.addChoices(...PROVIDER_CHOICES)
.setDefault("ytm")
.setDefault("yt")
, true)
.addAlias("p");
+1 -1
View File
@@ -33,7 +33,7 @@ export const command = new CommandBuilder()
o.setName("provider")
.setDescription("The search provider. Default: YouTube Music.", "options.search.provider")
.addChoices(...PROVIDER_CHOICES)
.setDefault("ytm")
.setDefault("yt")
.addFlagAliases("p", "u", "use")
, true)
.addTextOption(o =>