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.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

disopy-2.1.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for disopy-2.1.0.tar.gz
Algorithm Hash digest
SHA256 6e7bf2b5bc357abcf6da04379b32132fa1d98f40c45fae7d1164dd04dc57168c
MD5 fd6f5e2e0e7c6bd2599d68ea478ef200
BLAKE2b-256 d184caf0313b35e330d902c96a381f6ffcfa62c0620747d142fb61c479a33dc5

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on kutu-dev/disopy

Attestations:

File details

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

File metadata

  • Download URL: disopy-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 628a291eee65c3f2f75c0ecbea530f00a6c678330999f99662d222d523c9fa8d
MD5 23a10dc362e85d8b81fcac23fd338a3c
BLAKE2b-256 3afdf0c19d1c1d6319deb3c5d38211447c85f48250f6f7f235b2907e5797a5aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for disopy-2.1.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