lavalink-musicbot
lavalink-musicbot copied to clipboard
question helppppp pls *lavasfy, sc*
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 (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}**.`));
})
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} ]
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})
and how can i mention after ${this.current.info.title} in [mention]
like "SONG NAME" requested by [@rajamoulimallareddy#0 0 0 1]
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} .....
ur the god thank a lot do i can add another aliases for like skip command ? exept skip and skipto like -n
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
and i wanna now playing message get deleted when current music ended
sry i ask so many question together ♥♥♥♥ 3 question right now
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
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
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
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.
can some one answer my questions in discord ?
can some one answer my questions in discord ? Join here https://discord.gg/K9BnjfEwqy
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
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
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
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
you need to set auto resolve
you need to set auto resolve
what ?? how? where exacly musicclient which line
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
has some problem with artist play option
https://open.spotify.com/artist/belabelabela something like this with artist slash does not work