EasyXploit / HelpBot

A Discord bot designed for automated community moderation, leveling, chat utilities and much more!
MIT License
7 stars 1 forks source link

[BUG] Enlace de YouTube desconocido #38

Closed EasyXploit closed 3 years ago

EasyXploit commented 3 years ago

Describe el error: Se generó un error en consola durante la ejecución del comando play, que indica que el enlace proporcionado no es un enlace de YouTube válido, cómo es el caso de https://youtu.be/NmCCQxVBfyM.

Traza del error:

9/23/2021, 5:41:32 PM 》Rechazo de promesa no manejada: Error: not a known youtube link
    at AsyncFunction.main.getPlaylistID (/home/dperales555/HelpBot/node_modules/ytpl/lib/main.js:207:46)
    at module.exports (/home/dperales555/HelpBot/node_modules/ytpl/lib/main.js:13:30)
    at addPlaylist (/home/dperales555/HelpBot/commands/music/play.js:254:40)
    at Object.exports.run (/home/dperales555/HelpBot/commands/music/play.js:349:21)
    at Object.exports.run (/home/dperales555/HelpBot/events/message.js:197:23)
    at Client.<anonymous> (/home/dperales555/HelpBot/index.js:86:31)
    at Client.emit (node:events:394:28)
    at MessageCreateAction.handle (/home/dperales555/HelpBot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/home/dperales555/HelpBot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/home/dperales555/HelpBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
EasyXploit commented 3 years ago

Error referenciado en https://github.com/amishshah/ytdl-core-discord/issues/393.

EasyXploit commented 3 years ago

Es posible que https://stackoverflow.com/questions/20002153/convert-short-youtube-url-to-full-url sea la solución.