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.apk•3mo ago
We do not work on fixing issues with older versions of the package. We are currently on v4
';'
';'OP•3mo ago
yes but v4 have manger version ?
1Lucas1.apk
1Lucas1.apk•3mo ago
No description
1Lucas1.apk
1Lucas1.apk•3mo ago
we are on v4.52.2 v2 will be 2 years old actually did is already obsolete
';'
';'OP•3mo ago
v4.52.2 have manager or no ?
1Lucas1.apk
1Lucas1.apk•3mo ago
I don't understand
';'
';'OP•3mo ago
moonlink ^2.16.60 have manager version like client83883.moon = new MoonlinkManager([{
1Lucas1.apk
1Lucas1.apk•3mo ago
Creating a Music Bot
Learn how to create a simple music bot with Moonlink.js
';'
';'OP•3mo ago
so i just have to update the code to v4 and everything gonna work ?
1Lucas1.apk
1Lucas1.apk•3mo ago
yeah Does your bot have many lines?
';'
';'OP•3mo ago
u mean the code ?
MEE6
MEE6•3mo ago
GG @Ed, you just advanced to level 1!
1Lucas1.apk
1Lucas1.apk•3mo ago
yes
';'
';'OP•3mo ago
2000 because i don't use command like i have everything in one code
1Lucas1.apk
1Lucas1.apk•3mo ago
the small one, it will be quick to update
';'
';'OP•3mo 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.apk•3mo ago
I've seen someone send me a code almost like this
';'
';'OP•3mo ago
its me i just change my acc
1Lucas1.apk
1Lucas1.apk•3mo ago
Have you not updated this bot yet?
';'
';'OP•3mo ago
no bro i try with a ai but too many problems soo il will try with your doc
1Lucas1.apk
1Lucas1.apk•3mo ago
AI only has knowledge until 2023, it won't help much either you use an AI agent or do it manually
';'
';'OP•3mo ago
soo how can i update it manually? it's hard ?
1Lucas1.apk
1Lucas1.apk•3mo ago
coding no, anyone with basic knowledge of programming logic can do this
';'
';'OP•3mo ago
ok i will try but can you help if i have some problems pls ?
1Lucas1.apk
1Lucas1.apk•3mo ago
send me the file and I'll update it here but just this once
';'
';'OP•3mo ago
really bro ? you can do this ?
1Lucas1.apk
1Lucas1.apk•3mo ago
he sends
';'
';'OP•3mo ago
here is the code
1Lucas1.apk
1Lucas1.apk•3mo ago
I'll send it in a little while
';'
';'OP•3mo ago
i will be very thankful Lucas i don't understand
MEE6
MEE6•3mo ago
GG @Ed, you just advanced to level 2!
1Lucas1.apk
1Lucas1.apk•3mo ago
I'll send you an update shortly*
';'
';'OP•3mo ago
ok thx Lucas :purr_love: can i join to see how you update to learn @1Lucas1.apk
1Lucas1.apk
1Lucas1.apk•3mo ago
in the voice channel I'm doing something else
';'
';'OP•3mo ago
ok so you gonna take time ?
1Lucas1.apk
1Lucas1.apk•3mo 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
';'
';'OP•3mo ago
ok thank you bro can i join to see @1Lucas1.apk
1Lucas1.apk
1Lucas1.apk•3mo ago
he can

Did you find this page helpful?