Spotify issus

so guys i have a problem with spotify it's dosen't work when i try to play a music i get undefined - 00:00:00 btw i use moonlink manager version ^2.16.60 and this in logs 2025-07-22T23:37:32.615+03:00 INFO 4020 --- [Lavalink] [ XNIO-1 task-5] l.server.player.AudioLoaderRestHandler : Got request to load for identifier "ytsearch:Unknown Artist undefined" 2025-07-22T23:37:33.191+03:00 INFO 4020 --- [Lavalink] [ XNIO-1 task-5] l.server.player.AudioLoaderRestHandler : Loaded playlist Search results for: Unknown Artist undefined
No description
40 Replies
1Lucas1.apk
1Lucas1.apk5mo ago
We do not work on fixing issues with older versions of the package. We are currently on v4
déjà-vu
déjà-vuOP5mo ago
yes but v4 have manger version ?
1Lucas1.apk
1Lucas1.apk5mo ago
No description
1Lucas1.apk
1Lucas1.apk5mo ago
we are on v4.52.2 v2 will be 2 years old actually did is already obsolete
déjà-vu
déjà-vuOP5mo ago
v4.52.2 have manager or no ?
1Lucas1.apk
1Lucas1.apk5mo ago
I don't understand
déjà-vu
déjà-vuOP5mo ago
moonlink ^2.16.60 have manager version like client83883.moon = new MoonlinkManager([{
1Lucas1.apk
1Lucas1.apk5mo ago
Creating a Music Bot
Learn how to create a simple music bot with Moonlink.js
déjà-vu
déjà-vuOP5mo ago
so i just have to update the code to v4 and everything gonna work ?
1Lucas1.apk
1Lucas1.apk5mo ago
yeah Does your bot have many lines?
déjà-vu
déjà-vuOP5mo ago
u mean the code ?
MEE6
MEE65mo ago
GG @Ed, you just advanced to level 1!
1Lucas1.apk
1Lucas1.apk5mo ago
yes
déjà-vu
déjà-vuOP5mo ago
2000 because i don't use command like i have everything in one code
1Lucas1.apk
1Lucas1.apk5mo ago
the small one, it will be quick to update
déjà-vu
déjà-vuOP5mo ago
i can see u a part of my code
runsys: async function runBotSystem(token, idbot) {
const client83883 = new Client({
shards: "auto",
allowedMentions: {
parse: ["roles", "users", "everyone"],
repliedUser: false,
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,


],
});

const {
MoonlinkManager
} = require('moonlink.js')

client83883.moon = new MoonlinkManager([{
host: '',
port: ,
secure: false,
password: ''
}],
{
resumeKey: '',
}, (guild, sPayload) => {
client83883.guilds.cache.get(guild).shard.send(JSON.parse(sPayload))
})
// Event: Node created
client83883.moon.on('nodeCreate', (node) => {
console.log(`${node.host} was connected`);
});

// Event: Track start
/*client83883.moon.on('trackStart', async (player, track) => {
let embedc = db.get(`embed_${player.guildId}`)
let channel = client83883.channels.cache.get(player.textChannel)
let embedcolor = db.get(`embedcolor_${player.guildId}`)
if(embedc) {
let embed = new EmbedBuilder()
.setDescription(`**Start Playing** : \`${track.title}\` - \`${duratiform.format(track.duration, 'hh:mm:ss')}\``)
.setColor(embedcolor || config.color)
channel.send({embeds: [embed]}).catch(() => 0)
} else {
channel.send(`**Start Playing** : \`${track.title}\` - \`${duratiform.format(track.duration, 'hh:mm:ss')}\``).catch(() => 0)
}
});*/

// Event: Track end
client83883.moon.on('trackEnd', async (player, track) => {
// Send a message when the track finishes playing
return;
});

// Event: Ready
client83883.on('ready', () => {
// Initialize the Moonlink.js package with the client's user ID
client83883.moon.init(client83883.user.id);
});

// Event: Raw (raw data)
client83883.on('raw', (data) => {
// Update the Moonlink.js package with the necessary data to function correctly
client83883.moon.packetUpdate(data);
});
client83883.on('ready', async () => {
collection.set(client83883.user.id, client83883);
client83883.guilds.cache.forEach((guild) => {
let queue = client83883.moon.players.get(guild.id);
if (queue) {
queue.stop(true)
}
})
console.log('Bot: ' + client83883.user.username);
const filepath = `./node_modules/moonlink.js/dist/src/@Datastore/database-${client83883.user.id}.json`
if (fs.existsSync(filepath)) {
fs.readFile(filepath, 'utf8', function (err, data) {
if (err) throw err;
const content = {
"queue": {}
}
fs.writeFile(filepath, JSON.stringify(content), err => { if (err) throw err });
})
}
let int = setInterval(async () => {
try {
var dataaa = fs.readFileSync('./data.json', 'utf8');
dataaa = JSON.parse(dataaa);
} catch (error) {
console.error('Error parsing JSON:', error.message);
// Handle the error as needed
}
tokenObj = dataaa.find((tokenBot) => tokenBot.token == token)

if (tokenObj.expireDate <= Date.now()) {
client83883.guilds.cache.forEach((guild) => guild.leave())
await client83883.user.setAvatar(config.subinfo.botavatar)
await client83883.user.setUsername(config.subinfo.botusername)
await client83883.destroy()?.catch(() => 0);
return clearInterval(int);
}
runsys: async function runBotSystem(token, idbot) {
const client83883 = new Client({
shards: "auto",
allowedMentions: {
parse: ["roles", "users", "everyone"],
repliedUser: false,
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,


],
});

const {
MoonlinkManager
} = require('moonlink.js')

client83883.moon = new MoonlinkManager([{
host: '',
port: ,
secure: false,
password: ''
}],
{
resumeKey: '',
}, (guild, sPayload) => {
client83883.guilds.cache.get(guild).shard.send(JSON.parse(sPayload))
})
// Event: Node created
client83883.moon.on('nodeCreate', (node) => {
console.log(`${node.host} was connected`);
});

// Event: Track start
/*client83883.moon.on('trackStart', async (player, track) => {
let embedc = db.get(`embed_${player.guildId}`)
let channel = client83883.channels.cache.get(player.textChannel)
let embedcolor = db.get(`embedcolor_${player.guildId}`)
if(embedc) {
let embed = new EmbedBuilder()
.setDescription(`**Start Playing** : \`${track.title}\` - \`${duratiform.format(track.duration, 'hh:mm:ss')}\``)
.setColor(embedcolor || config.color)
channel.send({embeds: [embed]}).catch(() => 0)
} else {
channel.send(`**Start Playing** : \`${track.title}\` - \`${duratiform.format(track.duration, 'hh:mm:ss')}\``).catch(() => 0)
}
});*/

// Event: Track end
client83883.moon.on('trackEnd', async (player, track) => {
// Send a message when the track finishes playing
return;
});

// Event: Ready
client83883.on('ready', () => {
// Initialize the Moonlink.js package with the client's user ID
client83883.moon.init(client83883.user.id);
});

// Event: Raw (raw data)
client83883.on('raw', (data) => {
// Update the Moonlink.js package with the necessary data to function correctly
client83883.moon.packetUpdate(data);
});
client83883.on('ready', async () => {
collection.set(client83883.user.id, client83883);
client83883.guilds.cache.forEach((guild) => {
let queue = client83883.moon.players.get(guild.id);
if (queue) {
queue.stop(true)
}
})
console.log('Bot: ' + client83883.user.username);
const filepath = `./node_modules/moonlink.js/dist/src/@Datastore/database-${client83883.user.id}.json`
if (fs.existsSync(filepath)) {
fs.readFile(filepath, 'utf8', function (err, data) {
if (err) throw err;
const content = {
"queue": {}
}
fs.writeFile(filepath, JSON.stringify(content), err => { if (err) throw err });
})
}
let int = setInterval(async () => {
try {
var dataaa = fs.readFileSync('./data.json', 'utf8');
dataaa = JSON.parse(dataaa);
} catch (error) {
console.error('Error parsing JSON:', error.message);
// Handle the error as needed
}
tokenObj = dataaa.find((tokenBot) => tokenBot.token == token)

if (tokenObj.expireDate <= Date.now()) {
client83883.guilds.cache.forEach((guild) => guild.leave())
await client83883.user.setAvatar(config.subinfo.botavatar)
await client83883.user.setUsername(config.subinfo.botusername)
await client83883.destroy()?.catch(() => 0);
return clearInterval(int);
}
if (tokenObj.channel) {
let guild = client83883.guilds.cache.get(tokenObj.server)
if (guild) {
let voiceChannel = guild?.members?.me?.voice?.channel;
let clientMember = guild.members.cache.get(client83883.user.id)
if (voiceChannel) {
if (voiceChannel.id !== tokenObj.channel) {
let musicChannel = guild.channels.cache.get(tokenObj?.channel)
const connection = getVoiceConnection(tokenObj.server)
if (connection) {
connection.destroy()
}
if (musicChannel) {
joinVoiceChannel({
channelId: musicChannel.id,
guildId: musicChannel.guild.id,
adapterCreator: musicChannel.guild.voiceAdapterCreator,
group: musicChannel.id,
});
}
}
} else {
let musicChannel = guild.channels.cache.get(tokenObj?.channel)
if (musicChannel) {
joinVoiceChannel({
channelId: musicChannel.id,
guildId: musicChannel.guild.id,
adapterCreator: musicChannel.guild.voiceAdapterCreator,
group: musicChannel.id,
});
}
}
}
} else {
let guild = client83883.guilds.cache.get(tokenObj.server)
if (guild) {
let voiceChannel = guild?.members?.me?.voice?.channel;
if (voiceChannel) {
const connection = getVoiceConnection(guild.id)
if (connection) {
connection.destroy()
}
}
}
}
client83883.guilds.cache.filter((guild) => guild.id !== tokenObj.server).forEach((guild) => guild.leave())

}, 5000);
});
if (tokenObj.channel) {
let guild = client83883.guilds.cache.get(tokenObj.server)
if (guild) {
let voiceChannel = guild?.members?.me?.voice?.channel;
let clientMember = guild.members.cache.get(client83883.user.id)
if (voiceChannel) {
if (voiceChannel.id !== tokenObj.channel) {
let musicChannel = guild.channels.cache.get(tokenObj?.channel)
const connection = getVoiceConnection(tokenObj.server)
if (connection) {
connection.destroy()
}
if (musicChannel) {
joinVoiceChannel({
channelId: musicChannel.id,
guildId: musicChannel.guild.id,
adapterCreator: musicChannel.guild.voiceAdapterCreator,
group: musicChannel.id,
});
}
}
} else {
let musicChannel = guild.channels.cache.get(tokenObj?.channel)
if (musicChannel) {
joinVoiceChannel({
channelId: musicChannel.id,
guildId: musicChannel.guild.id,
adapterCreator: musicChannel.guild.voiceAdapterCreator,
group: musicChannel.id,
});
}
}
}
} else {
let guild = client83883.guilds.cache.get(tokenObj.server)
if (guild) {
let voiceChannel = guild?.members?.me?.voice?.channel;
if (voiceChannel) {
const connection = getVoiceConnection(guild.id)
if (connection) {
connection.destroy()
}
}
}
}
client83883.guilds.cache.filter((guild) => guild.id !== tokenObj.server).forEach((guild) => guild.leave())

}, 5000);
});
1Lucas1.apk
1Lucas1.apk5mo ago
I've seen someone send me a code almost like this
déjà-vu
déjà-vuOP5mo ago
its me i just change my acc
1Lucas1.apk
1Lucas1.apk5mo ago
Have you not updated this bot yet?
déjà-vu
déjà-vuOP5mo ago
no bro i try with a ai but too many problems soo il will try with your doc
1Lucas1.apk
1Lucas1.apk5mo ago
AI only has knowledge until 2023, it won't help much either you use an AI agent or do it manually
déjà-vu
déjà-vuOP5mo ago
soo how can i update it manually? it's hard ?
1Lucas1.apk
1Lucas1.apk5mo ago
coding no, anyone with basic knowledge of programming logic can do this
déjà-vu
déjà-vuOP5mo ago
ok i will try but can you help if i have some problems pls ?
1Lucas1.apk
1Lucas1.apk5mo ago
send me the file and I'll update it here but just this once
déjà-vu
déjà-vuOP5mo ago
really bro ? you can do this ?
1Lucas1.apk
1Lucas1.apk5mo ago
he sends
déjà-vu
déjà-vuOP5mo ago
here is the code
1Lucas1.apk
1Lucas1.apk5mo ago
I'll send it in a little while
déjà-vu
déjà-vuOP5mo ago
i will be very thankful Lucas i don't understand
MEE6
MEE65mo ago
GG @Ed, you just advanced to level 2!
1Lucas1.apk
1Lucas1.apk5mo ago
I'll send you an update shortly*
déjà-vu
déjà-vuOP5mo ago
ok thx Lucas :purr_love: can i join to see how you update to learn @1Lucas1.apk
1Lucas1.apk
1Lucas1.apk5mo ago
in the voice channel I'm doing something else
déjà-vu
déjà-vuOP5mo ago
ok so you gonna take time ?
1Lucas1.apk
1Lucas1.apk5mo ago
@Ed I did a good part of the bot as you can see in #music-commands tomorrow I'll finish the rest, now it's time to sleep for me
déjà-vu
déjà-vuOP5mo ago
ok thank you bro can i join to see @1Lucas1.apk
1Lucas1.apk
1Lucas1.apk5mo ago
he can

Did you find this page helpful?