mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
yt yeah yt
This commit is contained in:
1 parent
9cfa8e2e6c
commit
2a301c628d
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -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
@@ -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
@@ -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 =>
|
||||
|
||||
Reference in new issue
Block a user