Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

456
Views
¿Puede el bot de discord reproducir un video/audio de youtube (ytdl) alrededor de 22 horas?

Bueno, el código a continuación funciona bien, pero el único problema es que el bot no reproduce la pista completa, entonces, ¿es posible reproducir muchas horas como 22 horas? ¿algunas ideas?

Espero haber hecho un gran trabajo explicando el problema.

nodo v12.22.10

discordia.js v12.5.3


archivo de comando test.js :

 const ytdl = require('ytdl-core'); const Discord = require('discord.js') const client = new Discord.Client() module.exports = { commands: 'test', callback: (message, arguments, text, client) => { const url = 'url here'; if (message.content == '!test') { if (!message.member.voice.channel) return message.reply("you need to be on a voice channel to play the audio"); message.member.voice.channel.join().then(VoiceConnection => { VoiceConnection.play(ytdl(url)).on("finish", () => VoiceConnection.disconnect()); const logo = 'url here' const thumb = 'url here' const embed = new Discord.MessageEmbed() .setTitle('Playing...') .setAuthor(message.author.username) .setTimestamp() .setThumbnail(thumb) .setFooter("xx", logo) .setColor('#447a88') message.reply(embed) }).catch(e => console.log(e)) } } }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!