Created
April 26, 2023 07:56
-
-
Save Hunter87ff/4b11e8b11dcb250604d6f22963b36376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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