1
0
Fork 0
mirror of synced 2024-06-28 11:10:27 +12:00

Added a check for if a queue was empty, when printing the queue

This commit is contained in:
Phxntxm 2016-08-06 07:27:08 -05:00
parent 6004664bf1
commit 6b161692a4

View file

@ -219,6 +219,9 @@ class Music:
if not state.is_playing():
await self.bot.say('Not playing any music right now...')
return
if len(state.songs._queue) == 0:
fmt = "Nothing currently in the queue"
else:
fmt = "\n".join(str(x) for x in state.songs._queue)
await self.bot.say("Current songs in the queue:```\n{}```".format(fmt))