MORE breathing room

rr/dockerize
Will Hunt 2016-03-20 14:01:23 +00:00
parent 3e179d71a0
commit 32f40672d2
2 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,21 @@
# matrix-mpd-dj
A matrix bot for controlling a mpd music stream
Commands
--------
The current command selection is listed below:
```
play - Play if the stream has stopped
prev - Go to the previous track
next - Go to the next track
current - Current track name
help - List avaliable commands
[youtube url] - Give a youtube url to queue it
stream url - What is the stream url?
update - Refresh the library if the mpd fails to find a uploaded track.
```
Config
------
The configuration is stored in ~/.config/mpddj.ini

View File

@ -89,6 +89,7 @@ class CmdListener:
room.send_text("Couldn't download the file :(")
return;
self.mpc.update(True)
sleep(3)
self.mpc.add(f)
pos = len(self.mpc.playlist().split('\n'))-1
if pos > 1: