Skip to content

Instantly share code, notes, and snippets.

@Hunter87ff
Created April 26, 2023 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hunter87ff/4b11e8b11dcb250604d6f22963b36376 to your computer and use it in GitHub Desktop.
Save Hunter87ff/4b11e8b11dcb250604d6f22963b36376 to your computer and use it in GitHub Desktop.
@bot.command()
async def play(ctx,url2):
vc = await ctx.author.voice.channel.connect()
#FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
source = await discord.FFmpegOpusAudio.from_probe(url2)
vc.play(source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment