es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: YOUTUBE-DL

YDL se encuentra bloqueado en la descarga, discord.py.

He estado tratando de hacer que esta parte de mi código funcione durante aproximadamente 2 días hasta ahora. He intentado buscar problemas similares pero ninguna de las respuestas funcionó. @commands.command() async def play(self, ctx, url): ctx.voice_client.stop() FFMPEG_OPTIONS = {‘before_options’: ‘-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5’, ‘options’: ‘vn’} YDL_OPTIONS = {‘format’: . . . Read more

Discord.py MissingRequiredArgument: url es un argumento requerido que falta.

import youtube_dl client = commands.Bot(command_prefix = ‘!’, intents = discord.Intents.all()) class music(commands.Cog): def __init__(self , client): self.client = client @commands.command() async def play(self, ctx ,url): ctx.voice_client.stop() FFPEG_OPTIONS = {‘before_options’: ‘-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5’, ‘options’: ‘-vn’} YDL_OPTIONS = {‘format’:’bestaudio’, ‘default-search’: “ytdlsearch”} vc = ctx.voice_client with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl: info . . . Read more

Error de ‘dislike_count’ al utilizar youtube_dl en Replit.com

Estoy creando un bot de música de Discord en Python y todo funciona bien cuando ejecuto el bot en mi computadora, pero cuando lo ejecuto a través de Replit.com devuelve un error. Traceback (most recent call last): File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py”, line 939, in invoke await ctx.command.invoke(ctx) File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py”, line 863, in . . . Read more