!song fix

This commit is contained in:
Twentysix 2016-05-14 03:10:03 +02:00
parent 0bc7b41d8c
commit 55531ad894

View File

@ -1359,9 +1359,8 @@ class Audio:
song = self.queue[server.id]["NOW_PLAYING"] song = self.queue[server.id]["NOW_PLAYING"]
if song: if song:
msg = ("\n**Title:** {}\n**Author:** {}\n**Uploader:** {}\n" msg = ("\n**Title:** {}\n**Author:** {}\n**Uploader:** {}\n"
"**Views:** {}\n\n<{}>".format( "**Views:** {}\n\n<{}>".format(song.title, song.creator,
song.title, song.creator, song.view_count, song.uploader, song.view_count, song.webpage_url))
song.webpage_url))
await self.bot.say(msg.replace("**Author:** None\n", "")) await self.bot.say(msg.replace("**Author:** None\n", ""))
else: else:
await self.bot.say("I don't know what this song is either.") await self.bot.say("I don't know what this song is either.")