Control your mopidy instance from slack
Requires you to create a slack app in your workspace.
Install by running:
pip install Mopidy-Slack
To work you need to create a Slack App and install it to your workspace. This way you get the bot user OAuth access token, useful later
Then you need to activate the events API. This API requires the URL on which your mopidy instance is callable. If you are testing it on local you can use ngork to expose your instance on the web. After you domain, add the endpoint
You also need to subcribe the app to the event
message.channels. This way the app will receive all messages posted in channel where its had been added. Beware not to post confidential data :warning:
In mopidy configuration, you must add your Slack app's Bot User OAuth Access Token using
So configuration is:
All available commands are available in the folder
command. Currently there is :
helpDisplay the help
keepAsk to keep the current playing song
nextAsk to skip the current playing song
request song_name [- artist_name]Request a new song to be played
start [playlist_name]Start the radio broadcast. The bot will look for playlist starting with given name of fallback to the default playlist
Note that there is no
/ before the command, this way we are not using the slack app commands. If we used this mecanism, the configuration of app would be long and difficult to maintain.
- Initial release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size Mopidy_Slack-0.1.0-py2.py3-none-any.whl (12.6 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size Mopidy-Slack-0.1.0.tar.gz (10.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for Mopidy_Slack-0.1.0-py2.py3-none-any.whl