mirror of
https://gitlab.jonasled.de/jonasled/discordbot
synced 2024-10-03 07:48:58 +02:00
added que
This commit is contained in:
parent
17212074b1
commit
0179277dba
1 changed files with 12 additions and 0 deletions
12
bot.py
12
bot.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue