Mopidy-Slack
Mopidy extension for controlling music from Slack.
Requires you to create a slack app in your workspace.
Installation
Install by running: pip install Mopidy-Slack
Configuration
Slack App
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 /slack/events.
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 ⚠️
Mopidy
In mopidy configuration, you must add your Slack app's Bot User OAuth Access Token using bot_token
So configuration is:
[slack]
bot_token=xoxb-123456789123-1234567891234-xxx
Extension commands
All available commands are available in the folder command. Currently there is :
helpDisplay the helpkeepAsk to keep the current playing songnextAsk to skip the current playing songrequest song_name [- artist_name]Request a new song to be playedstart [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.
Project resources
Changelog
v0.1.0 (2020-05-13)
- Initial release.
Metadata
Release files for Mopidy-Slack 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Mopidy-Slack-0.1.0.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Mopidy_Slack-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 22.8 kB
Release files / Mopidy-Slack-0.1.0.tar.gz
| Download URL | Mopidy-Slack-0.1.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
765be6ed47183109f6754cfd2103d74814b4f88ebc7039540e50144346769491
|
|
BLAKE2b-256 checksum How to use checksums |
944a06a789a5136991546436e64cc554d10c3ff6061fe0f5662d30bc9efbc0e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / Mopidy_Slack-0.1.0-py2.py3-none-any.whl
| Download URL | Mopidy_Slack-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
73b2b4635c720505e7620b4cd53f8fbd325e646cad7d50568449af1ea1259999
|
|
BLAKE2b-256 checksum How to use checksums |
e2562954450855d6075f72789d9ed4f933ee183b7a84a8b2e50d1d93efad2ad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|