diff --git a/configuration.ini b/configuration.ini
index 141a2a6..215138a 100644
--- a/configuration.ini
+++ b/configuration.ini
@@ -26,6 +26,7 @@ volume = v
kill = kill
stop_and_getout = oust
joinme = joinme
+queue = queue
[strings]
@@ -38,11 +39,15 @@ bad_file = Bad file asked
no_file = Not file here
bad_url = Bad URL asked
multiple_matches = Track not found! Possible candidates:
+queue_contents = The next items in the queue are:
+queue_empty = The queue is empty!
help = Command available:
!play_file
!play_url - youtube or soundcloud
!play_radio - url of a stream
+
!list - display list of available tracks
+
!queue - display items in queue
!next - jump to the next music of the playlist
!stop - stop and clear the playlist
!oust - stop + Go to default channel
diff --git a/mumbleBot.py b/mumbleBot.py
index 4cb40d5..d2aeb53 100644
--- a/mumbleBot.py
+++ b/mumbleBot.py
@@ -188,6 +188,16 @@ class MumbleBot:
self.mumble.users[text.actor].send_message('
'.join(files))
else :
self.mumble.users[text.actor].send_message(self.config.get('strings', 'no_file'))
+
+ elif command == self.config.get('command', 'queue'):
+ if len(var.playlist) == 0:
+ msg = self.config.get('strings', 'queue_empty')
+ else:
+ msg = self.config.get('strings', 'queue_contents') + '
'
+ for (type, path) in var.playlist:
+ msg += '({}) {}
'.format(type, path)
+
+ self.send_msg_channel(msg)
else:
self.mumble.users[text.actor].send_message(self.config.get('strings', 'bad_command'))