MORE breathing room
parent
3e179d71a0
commit
32f40672d2
15
README.md
15
README.md
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue