Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

question helppppp pls *lavasfy, sc* #152

Open
sarabano1 opened this issue Sep 28, 2021 · 23 comments
Open

question helppppp pls *lavasfy, sc* #152

sarabano1 opened this issue Sep 28, 2021 · 23 comments

Comments

@sarabano1
Copy link

    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

@rajamoulimallareddy
Copy link
Contributor

rajamoulimallareddy commented Sep 28, 2021

    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}**.`));
})

@sarabano1
Copy link
Author

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} ]

@rajamoulimallareddy
Copy link
Contributor

rajamoulimallareddy commented Sep 30, 2021

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})

@sarabano1
Copy link
Author

sarabano1 commented Sep 30, 2021

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

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

@rajamoulimallareddy
Copy link
Contributor

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} .....

@sarabano1
Copy link
Author

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

@sarabano1
Copy link
Author

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
Copy link
Author

sarabano1 commented Oct 7, 2021

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

sry i ask so many question together 鈾モ櫏鈾モ櫏
3 question right now

@sarabano1 sarabano1 changed the title music handler question Oct 11, 2021
@sarabano1 sarabano1 changed the title question question helppppp pls Oct 11, 2021
@yofukashino
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

@sarabano1
Copy link
Author

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
Copy link
Author

can some one answer my questions in discord ?

@rajamoulimallareddy
Copy link
Contributor

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

@yofukashino
Copy link
Contributor

yofukashino commented Oct 16, 2021

can some one answer my questions in discord ?

My Discord ID, send a friend request

@yofukashino
Copy link
Contributor

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

@sarabano1
Copy link
Author

sarabano1 commented Oct 23, 2021

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 sarabano1 changed the title question helppppp pls question helppppp pls *lavasfy* Oct 23, 2021
@sarabano1 sarabano1 changed the title question helppppp pls *lavasfy* question helppppp pls *lavasfy, sc* Oct 23, 2021
@rajamoulimallareddy
Copy link
Contributor

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

@sarabano1
Copy link
Author

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

@yofukashino
Copy link
Contributor

you need to set auto resolve

@sarabano1
Copy link
Author

you need to set auto resolve

what ?? how? where exacly musicclient which line

@Allvaa
Copy link
Owner

Allvaa commented Nov 25, 2021

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

@sarabano1
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants