henkelmax / audio-player

Put your own audio files on music discs!
54 stars 17 forks source link

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

Closed Wolphwood closed 9 months ago

Wolphwood commented 9 months 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 9 months ago

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