Update bots/Pytube_music.py
Browse files- bots/Pytube_music.py +1 -1
bots/Pytube_music.py
CHANGED
|
@@ -26,7 +26,7 @@ async def play_stream(ctx, url):
|
|
| 26 |
voice_client.play(player, after=lambda e: print(f"播放完成: {e}"))
|
| 27 |
|
| 28 |
@client.command(name="pplayp")
|
| 29 |
-
async def
|
| 30 |
"""從 YouTube 直播網址播放音頻"""
|
| 31 |
await play_stream(ctx, url)
|
| 32 |
|
|
|
|
| 26 |
voice_client.play(player, after=lambda e: print(f"播放完成: {e}"))
|
| 27 |
|
| 28 |
@client.command(name="pplayp")
|
| 29 |
+
async def play (ctx, *, url):
|
| 30 |
"""從 YouTube 直播網址播放音頻"""
|
| 31 |
await play_stream(ctx, url)
|
| 32 |
|