Fixed Typing...
This commit is contained in:
1 parent
67cb769111
commit
1debcd86fe
1 file changed
+8
-8
+8
-8
@@ -194,10 +194,10 @@ else:
|
|||||||
raise commands.CommandError(err)
|
raise commands.CommandError(err)
|
||||||
finally:
|
finally:
|
||||||
await ctx.send(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}")
|
await ctx.send(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}")
|
||||||
while ctx.voice_client.is_playing():
|
while ctx.voice_client.is_playing():
|
||||||
await asyncio.sleep(3)
|
await asyncio.sleep(3)
|
||||||
else:
|
else:
|
||||||
await ctx.voice_client.disconnect()
|
await ctx.voice_client.disconnect()
|
||||||
|
|
||||||
|
|
||||||
@bot.slash_command(name="stream", description="Streams a song from YouTube [Without preloading]")
|
@bot.slash_command(name="stream", description="Streams a song from YouTube [Without preloading]")
|
||||||
@@ -254,10 +254,10 @@ else:
|
|||||||
raise commands.CommandError(err)
|
raise commands.CommandError(err)
|
||||||
finally:
|
finally:
|
||||||
await ctx.send(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}")
|
await ctx.send(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}")
|
||||||
while ctx.voice_client.is_playing():
|
while ctx.voice_client.is_playing():
|
||||||
await asyncio.sleep(3)
|
await asyncio.sleep(3)
|
||||||
else:
|
else:
|
||||||
await ctx.voice_client.disconnect()
|
await ctx.voice_client.disconnect()
|
||||||
|
|
||||||
|
|
||||||
@play.before_invoke
|
@play.before_invoke
|
||||||
|
|||||||
Reference in new issue
Block a user