mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Youtube video title
Now with the title and not more with the id
This commit is contained in:
parent
a48d4e9374
commit
b8e7e97efe
BIN
cache/q6-ZGAGcJrk
vendored
Normal file
BIN
cache/q6-ZGAGcJrk
vendored
Normal file
Binary file not shown.
2
red.py
2
red.py
@ -1031,7 +1031,7 @@ async def playVideo(message):
|
|||||||
data = {"filename" : 'https://www.youtube.com/watch?v=' + id, "type" : "singleSong"}
|
data = {"filename" : 'https://www.youtube.com/watch?v=' + id, "type" : "singleSong"}
|
||||||
currentPlaylist = Playlist(data)
|
currentPlaylist = Playlist(data)
|
||||||
if canDeleteMessages(message):
|
if canDeleteMessages(message):
|
||||||
await client.send_message(message.channel, "`Playing youtube video {} requested by {}`".format(await youtubeparser.getTitle(currentPlaylist.playlist[currentPlaylist.current]), currentPlaylist.playlist[currentPlaylist.current]))
|
await client.send_message(message.channel, "`Playing youtube video {} requested by {}`".format(await youtubeparser.getTitle(currentPlaylist.playlist[currentPlaylist.current]), message.author.name))
|
||||||
await client.delete_message(message)
|
await client.delete_message(message)
|
||||||
if toDelete:
|
if toDelete:
|
||||||
await client.delete_message(toDelete)
|
await client.delete_message(toDelete)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user