Add tracks from a direct link and from Discord with /play, /skip, /queue
- Download direct audio links server side (web page and /play), refusing internal and special addresses at connection time and after every redirect, with size and time limits. - /play takes an attachment, a direct link or a library track (autocomplete), and can keep the file in the library; /skip and /queue control and show the shared queue. - Share one ingest path between uploads, links and Discord attachments. - Answer 413 instead of 500 when the library is full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
98f4d29ac7
commit
39d2b6acfb
14 changed files with 715 additions and 54 deletions
17
README.md
17
README.md
|
|
@ -79,6 +79,23 @@ Variables facultatives :
|
|||
- `INVITE_LINK` : lien publié par `/invitation` quand la commande ne reçoit pas
|
||||
de lien.
|
||||
|
||||
## Jukebox
|
||||
|
||||
La page `/jukebox` et les commandes `/play`, `/skip` et `/queue` pilotent la même
|
||||
file d'attente.
|
||||
|
||||
- `/play fichier:` (pièce jointe), `/play lien:` (lien direct vers un fichier
|
||||
audio) ou `/play morceau:` (bibliothèque, avec autocomplétion) ; l'option
|
||||
`garder` ajoute le fichier à la bibliothèque. La page web accepte aussi un
|
||||
lien direct. YouTube et Spotify ne sont pas pris en charge.
|
||||
- Le serveur télécharge lui-même les liens et refuse les adresses internes
|
||||
(réseau local, boucle locale…), y compris après une redirection.
|
||||
- Chaque morceau passe par `ffmpeg`, qui normalise le volume (EBU R128) et
|
||||
encode en Opus : Discord reçoit l'audio sans réencodage.
|
||||
|
||||
Après l'ajout ou la modification d'une commande, relancer `npm run deploy` pour
|
||||
les enregistrer auprès de Discord.
|
||||
|
||||
## Invitations
|
||||
|
||||
Les membres ne peuvent pas créer d'invitation : un seul lien, à adhésion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue