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

TODO

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

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

Uploaded Source

Built Distribution

disopy-1.1.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for disopy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4f8f82238a35bcefe9da02445e4850958cb73bd6994062d56679336801e12e30
MD5 fbf368df959d83617693907abaffd2ab
BLAKE2b-256 e4fcddff33ddfdadee941261b202240a3d2e57a74175d0a7a178e71475bbd14b

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on kutu-dev/disopy

Attestations:

File details

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

File metadata

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

File hashes

Hashes for disopy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be785d4e81f38572100652d6d5d40fb38233223f6cd03f7c4cc4fd3f13ac199a
MD5 09e8f84c3ba51cf358117030b6eff5ef
BLAKE2b-256 e59b28a3565bfcf37d7d744150be764d2bb993d806e330bc4e84bc710deb51ef

See more details on using hashes here.

Provenance

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