lavalink-musicbot icon indicating copy to clipboard operation
lavalink-musicbot copied to clipboard

question helppppp pls *lavasfy, sc*

Open sarabano1 opened this issue 2 years ago • 23 comments

    this.player
        .on("start", () => {
            this.current = this.queue.shift();
            if (this.textChannel) this.textChannel.send(util.embed().setcolor (message.guild.me.display.HexColor).setDescription(`🎶 | Now playing **${this.current.info.title}**.`));
        }) 
        

embed color same as topest role how can i define message in this music handler

sarabano1 avatar Sep 28 '21 06:09 sarabano1

    this.player
        .on("start", () => {
            this.current = this.queue.shift();
            if (this.textChannel) this.textChannel.send(util.embed().setcolor (message.guild.me.display.HexColor).setDescription(`🎶 | Now playing **${this.current.info.title}**.`));
        }) 

embed color same as topest role how can i define message in this music handler

this.player
.on("start", () => {
    this.current = this.queue.shift();
    if (this.textChannel) this.textChannel.send(util.embed().setColor(this.guild.me.displayHexColor).setDescription(`🎶 | Now playing **${this.current.info.title}**.`));
})

rajamoulimallareddy avatar Sep 28 '21 07:09 rajamoulimallareddy

thx worked sry to asking again how can i add current playing music link to the description message in this result message [ ${this.current.info.title} ]

sarabano1 avatar Sep 29 '21 06:09 sarabano1

thx worked sry to asking again how can I add current playing music link to the description message in this result message [ ${this.current.info.title} ]

If you are talking about URL then [${this.current.info.title}](${this.current.info.uri})

rajamoulimallareddy avatar Sep 30 '21 04:09 rajamoulimallareddy

and how can i mention after ${this.current.info.title} in [mention]

like "SONG NAME" requested by [@rajamoulimallareddy#0 0 0 1]

sarabano1 avatar Sep 30 '21 05:09 sarabano1

and how can i mention after ${this.current.info.title} in [mention]

like "SONG NAME" requested by [@rajamoulimallareddy#0 0 0 1]

keep like ${this.current.requester} or ${this.current.requester.tag} .....

rajamoulimallareddy avatar Sep 30 '21 05:09 rajamoulimallareddy

ur the god thank a lot do i can add another aliases for like skip command ? exept skip and skipto like -n

sarabano1 avatar Oct 07 '21 12:10 sarabano1

and another think i want -n has another reaction emoji for variety how How can i do this ? example = -skip 👌 -n 🤙 but do same thing

sarabano1 avatar Oct 07 '21 13:10 sarabano1

and i wanna now playing message get deleted when current music ended

sry i ask so many question together ♥♥♥♥ 3 question right now

sarabano1 avatar Oct 07 '21 13:10 sarabano1

and i wanna now playing message get deleted when current music ended

sry i ask so many question together ♥♥♥♥ 3 question right now

the pull request is there #156 check it

yofukashino avatar Oct 13 '21 01:10 yofukashino

ur the god thank a lot do i can add another aliases for like skip command ? exept skip and skipto like -n

well just add it in the command file in aliases: ['skip' ,'skipto', '-n'], this should do it

yofukashino avatar Oct 13 '21 01:10 yofukashino

and another think i want -n has another reaction emoji for variety how How can i do this ? example = -skip 👌 -n 🤙 but do same thing

well check for the message content and if use message react to react to message

yofukashino avatar Oct 13 '21 01:10 yofukashino

the pull request is there #156 check it

i dont get it what i need to do ?

is this.player.msg a thing

Tharki-God commented 9 days ago Well i defined it as the now playing message.

sarabano1 avatar Oct 14 '21 12:10 sarabano1

can some one answer my questions in discord ?

sarabano1 avatar Oct 14 '21 17:10 sarabano1

can some one answer my questions in discord ? Join here https://discord.gg/K9BnjfEwqy

rajamoulimallareddy avatar Oct 14 '21 17:10 rajamoulimallareddy

can some one answer my questions in discord ?

My Discord ID, send a friend request

yofukashino avatar Oct 16 '21 23:10 yofukashino

the pull request is there #156 check it

i dont get it what i need to do ?

is this.player.msg a thing

Tharki-God commented 9 days ago Well i defined it as the now playing message.

just add the code defined in pull request

yofukashino avatar Oct 16 '21 23:10 yofukashino

Screenshot 2021-10-24 004459 how can i fix this ?


lava link eror :

2021-10-24 00:31:27.042 ERROR 10716 --- [ader-2-thread-5] l.server.player.AudioLoaderRestHandler : Track loading failed

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Unknown file format. at >com.sedmelluq.discord.lavaplayer.source.ProbingAudioSourceManager.handleLoadResult(ProbingAudioSourceManager.java:34) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager.loadItem(HttpAudioSourceManager.java:81) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:436) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:418) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$createItemLoader$0(DefaultAudioPlayerManager.java:217) ~[lavaplayer-1.3.76.jar!/:na] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation: lavaplayer.version: 1.3.76 os.arch: amd64 os.name: Windows 10 os.version: 10.0 java.vendor: Oracle Corporation java.version: 11 java.runtime.version: 11+28 java.vm.version: 11+28

i want soundcloud tooooooooooooooooooooo

sarabano1 avatar Oct 23 '21 21:10 sarabano1

Screenshot 2021-10-24 004459 how can i fix this ? lava link eror :

2021-10-24 00:31:27.042 ERROR 10716 --- [ader-2-thread-5] l.server.player.AudioLoaderRestHandler : Track loading failed

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Unknown file format. at >com.sedmelluq.discord.lavaplayer.source.ProbingAudioSourceManager.handleLoadResult(ProbingAudioSourceManager.java:34) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager.loadItem(HttpAudioSourceManager.java:81) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:436) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:418) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$createItemLoader$0(DefaultAudioPlayerManager.java:217) ~[lavaplayer-1.3.76.jar!/:na] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation: lavaplayer.version: 1.3.76 os.arch: amd64 os.name: Windows 10 os.version: 10.0 java.vendor: Oracle Corporation java.version: 11 java.runtime.version: 11+28 java.vm.version: 11+28

i want soundcloud tooooooooooooooooooooo

show your lavafy options

rajamoulimallareddy avatar Oct 29 '21 18:10 rajamoulimallareddy

default lavafy config @rajamoulimallareddy

8888888888888888888888888888888888888888888888888888888888888888888888

const { Manager } = require("@lavacord/discord.js"); const { Client, Collection } = require("discord.js"); const { promises: { readdir } } = require("fs"); const { join } = require("path"); const { LavasfyClient } = require("lavasfy");

require("../extensions");

module.exports = class MusicClient extends Client { /** @param {import("discord.js").ClientOptions} [opt] */ constructor(opt) { super(opt); this.commands = new Collection(); this.manager = new Manager(this, [ { id: "main", host: process.env.LAVA_HOST, port: process.env.LAVA_PORT, password: process.env.LAVA_PASS } ]); this.spotify = process.env.ENABLE_SPOTIFY === "true" ? new LavasfyClient({ clientID: process.env.SPOTIFY_ID, clientSecret: process.env.SPOTIFY_SECRET, playlistLoadLimit: process.env.SPOTIFY_PLAYLIST_PAGE_LIMIT, audioOnlyResults: true, useSpotifyMetadata: true }, [...[...this.manager.nodes.values()]]) : null;

    this.prefix = process.env.PREFIX.toLowerCase();
}

build() {
    this.loadCommands();
    this.loadEventListeners();
    this.login(process.env.TOKEN);

    this.manager
        .on("ready", node => console.log(`Node ${node.id} is ready!`))
        .on("disconnect", (ws, node) => console.log(`Node ${node.id} disconnected.`))
        .on("reconnecting", (node) => console.log(`Node ${node.id} tries to reconnect.`))
        .on("error", (error, node) => console.log(`Node ${node.id} got an error: ${error.message}`));
}

/** @private */
async loadCommands() {
    const commands = await readdir(join(__dirname, "..", "commands"));
    for (const commandFile of commands) {
        const command = require(`../commands/${commandFile}`);
        this.commands.set(command.name, command);
    }
}

/** @private */
async loadEventListeners() {
    const listeners = await readdir(join(__dirname, "..", "listeners"));
    for (const listenerFile of listeners) {
        const listener = require(`../listeners/${listenerFile}`);
        this.on(listener.name, (...args) => listener.exec(this, ...args));
    }
}

};

8888888888888888888888888888888888888888888888888888888888888888888888

this is music client.js its default as this https://github.com/Allvaa/lavalink-musicbot/blob/master/src/structures/MusicClient.js

sarabano1 avatar Nov 01 '21 13:11 sarabano1

you need to set auto resolve

yofukashino avatar Nov 01 '21 15:11 yofukashino

you need to set auto resolve

what ?? how? where exacly musicclient which line

sarabano1 avatar Nov 04 '21 23:11 sarabano1

how can i fix this ? lava link eror :

2021-10-24 00:31:27.042 ERROR 10716 --- [ader-2-thread-5] l.server.player.AudioLoaderRestHandler : Track loading failed

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Unknown file format. at >com.sedmelluq.discord.lavaplayer.source.ProbingAudioSourceManager.handleLoadResult(ProbingAudioSourceManager.java:34) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager.loadItem(HttpAudioSourceManager.java:81) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:436) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:418) ~[lavaplayer-1.3.76.jar!/:na] at >com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$createItemLoader$0(DefaultAudioPlayerManager.java:217) ~[lavaplayer-1.3.76.jar!/:na] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation: lavaplayer.version: 1.3.76 os.arch: amd64 os.name: Windows 10 os.version: 10.0 java.vendor: Oracle Corporation java.version: 11 java.runtime.version: 11+28 java.vm.version: 11+28

i want soundcloud tooooooooooooooooooooo

update your lavalink.jar

Allvaa avatar Nov 25 '21 07:11 Allvaa

unknown 1 has some problem with artist play option https://open.spotify.com/artist/belabelabela something like this with artist slash does not work

sarabano1 avatar Dec 21 '21 05:12 sarabano1