henkelmax / audio-player

Put your own audio files on music discs!
58 stars 21 forks source link

[Enchancement] There is no command to get the existing sounds ? #61

Closed Wolphwood closed 1 year ago

Wolphwood commented 1 year ago

It would be useful to have a command that lists the sounds available.

A file could be present to list the sounds?

[
  { filename: "original_name.mp3", id: "the uuid", duration: "sound duration in ms", uploader: "data containing who upload this ?" },
  { filename: "original_name.wav", id: "the uuid", duration: "2700", uploader: "data containing who upload this ?" },

]

The command : /audioplayer list

The ouput :

Sound list :
 - The sound name (17.5s) // => Display Id and owner on hover, copy id into clipboard on click.

or maybe like that ?

Sound list :
 [id] [disc] [horn] The sound name (17.5s)

with "id", "disc" and "horn" translated separately than the main message main message => [%s] [%s] [%s] %s (%s) so people (like me) can replace text 'disc' or 'horn' with custom emojis (with ressource pack)

henkelmax commented 1 year ago

You can get the id of an item by using the "/audioplayer id" command

yuli6669 commented 3 months ago

Getting all already downloaded songs would be useful tho. And using file names instead of IDs. This would make it more user-friendly

henkelmax commented 3 months ago

Getting all already downloaded songs would be useful tho. And using file names instead of IDs. This would make it more user-friendly

This is already implemented.

yuli6669 commented 3 months ago

oh, yes, sorry, didn't read repo thoroughly