AudioPlayer

AudioPlayer

157k Downloads

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

Wolphwood opened this issue ยท 4 comments

commented

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)

commented

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

commented

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

commented

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.

commented

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