TODO: Add a description of the plugin.
Add lita-simple-mopidy to your Lita instance's Gemfile:
gem "lita-simple-mopidy"
Specify the Mopidy API HTTP Server in the Lita config file. Check the Mopidy API doc
Lita.configure do |config|
config.handlers.simple_mopidy.http_server = "http://localhost:6680/mopidy/rpc"
end
You can use the keyword music
or mopidy
and the action you want to perform. Optionally you can add the me
suffix for those coming from Hubot
Lita: music play
Lita: mopidy stop
Lita: music me previous