Skip to main content

A Discord bot for listening music from a Subsonic server.

Project description

Disopy

justforfunnoreally.dev badge PyPI - Version PyPI - Python Version

A Discord bot for listening music from a Subsonic server.

Setup

The only external dependencies needed are:

  • ffmpeg.
  • libopus.

Then just install the bot from PyPI with pipx:

pipx install disopy

Or directy with pip:

python3 -m pip install disopy

Finally generate a basic config file:

disopy --generate-config

It will be located at ${XDG_CONFIG_DIR}/disopy/config.toml (in most cases $HOME/.config/disopy/config.toml), remember to edit it with your configuration values.

Docker

There is an official Docker container with name ghcr.io/kutu-dev/disopy. An example compose file is also provided.

Running the bot

The bot needs two environment variables:

  • DISOPY_SUBSONIC_PASSWORD: The password to be send to the Subsonic REST API.
  • DISOPY_DISCORD_TOKEN: The token to be used when authenticating to the Discord API.

And then just start the bot!

DISOPY_SUBSONIC_PASSWORD=foo DISOPY_DISCORD_TOKEN=bar disopy

[!WARNING]
This bot needs the Message Content Intent privileged Gateway enable in the Discord Developers Application Bot settings to run correctly.

Contributing

If you are interested in fixing bugs or adding new features please check the contributing guide.

Acknowledgements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

disopy-2.2.0.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

disopy-2.2.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file disopy-2.2.0.tar.gz.

File metadata

  • Download URL: disopy-2.2.0.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for disopy-2.2.0.tar.gz
Algorithm Hash digest
SHA256 1cecaacde76174c5725c33f6993cf38d19df54a28360db0c605660946c6d4902
MD5 cb1651d1cae03e5c7fb5f8b548e95638
BLAKE2b-256 6a2934ed6ae595e9b5051f4f3a60d6efcbca8e845acde1c6e9058c507386e815

See more details on using hashes here.

Provenance

The following attestation bundles were made for disopy-2.2.0.tar.gz:

Publisher: publish.yml on kutu-dev/disopy

Attestations:

File details

Details for the file disopy-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: disopy-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for disopy-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a774d58cc5720786e51a5349fbe8485f45a80412f572d06e0e02d08bad76204c
MD5 8dc916eb0a8680385a8287d92b1fd71e
BLAKE2b-256 63933fda83c30c6b9645fddffad334ecdced5e3a73d5b057f10859c92beb1edb

See more details on using hashes here.

Provenance

The following attestation bundles were made for disopy-2.2.0-py3-none-any.whl:

Publisher: publish.yml on kutu-dev/disopy

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page