The syntax for
mpd.script is similar to the other mpd
configuration files. Lines beginning with a hash sign are ignored.
A label sits on its own line, starting in the first
column and ends with a colon character.
Chat commands are indented with tab characters and written one per line.
Commands are executed sequentially. Execution continues without stopping until there is an error or one of the following commands is encountered:
successThe script returns success.
failureThe script returns failure.
waitExecution of the script is halted until an event occurs.