1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-10-03 07:48:58 +02:00

added que

This commit is contained in:
Jonas Leder 2020-04-10 17:01:22 +02:00
parent 17212074b1
commit 0179277dba

12
bot.py
View file

@ -416,12 +416,24 @@ async def skip(ctx):
player.stop()
await ctx.message.channel.send("Skipped to next song")
@bot.command(brief="Prints the current que")
async def que(ctx):
global titleQue
message = "**Musicbot Que:**\n **[current]** " + titleQue[0]
for entries in titleQue[1:]:
message = message + "\n" + entries
await ctx.message.channel.send(message)
async def checkForNextSong():
global player
global playerQue
global playerServer
global playing
global titleQue
while True:
if(player != None) and not player.is_playing() and (len(playerQue) > 0):