summaryrefslogtreecommitdiff
path: root/plugins/mpd_client.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-04-13 22:33:06 +0200
committermathieui <mathieui@mathieui.net>2013-04-13 22:33:06 +0200
commitd676c2ee7b6207ff0b2a7b384052ab07c08bf43a (patch)
treeb6c22d35da1eb5bc33ab0cc983a86d8dfe6c2a78 /plugins/mpd_client.py
parente6cb43eeedcd6c6961c5ab430f25bb962d40bf8e (diff)
downloadpoezio-d676c2ee7b6207ff0b2a7b384052ab07c08bf43a.tar.gz
poezio-d676c2ee7b6207ff0b2a7b384052ab07c08bf43a.tar.bz2
poezio-d676c2ee7b6207ff0b2a7b384052ab07c08bf43a.tar.xz
poezio-d676c2ee7b6207ff0b2a7b384052ab07c08bf43a.zip
Move the plugins documentation
(use automodule directive & docstrings)
Diffstat (limited to 'plugins/mpd_client.py')
-rw-r--r--plugins/mpd_client.py51
1 files changed, 50 insertions, 1 deletions
diff --git a/plugins/mpd_client.py b/plugins/mpd_client.py
index 09a2e5d2..5991422c 100644
--- a/plugins/mpd_client.py
+++ b/plugins/mpd_client.py
@@ -1,4 +1,53 @@
-# a plugin adding a command to manipulate an MPD instance
+"""
+This plugin is here to send what you are listening to in a chat tab.
+
+
+
+Installation
+------------
+
+You need `python-mpd`_, in its python3 version.
+
+Then you can load the plugin.
+
+.. code-block:: none
+
+ /load mpd_client
+
+
+Configuration
+-------------
+
+You have to put the following into :file:`mpd_client.cfg`, as explained in
+the :ref:`plugin-configuration` section.
+
+.. note:: If you do not put anything, the plugin will try to connect to
+ :file:`localhost:6600` with no password.
+
+.. code-block:: ini
+
+ [mpd_client]
+ host = the_mpd_host
+ port = 6600
+ password = password if necessary
+
+
+Usage
+-----
+
+.. glossary::
+
+ /mpd
+ **Usage:** ``/mpd [full]``
+
+ The bare command will show the current song, artist, and album
+
+ ``/mpd full`` will show the current song, artist, and album,
+ plus a nice progress bar in color.
+
+.. _python-mpd: https://github.com/Mic92/python-mpd2
+
+"""
from plugin import BasePlugin
from common import shell_split