zRitsu / MuseHeart-MusicBot

bot de música programado em python com player interativo, suporte a multi-bot, comandos barra/slash, integração com last.fm e muito mais.
GNU General Public License v2.0
97 stars 87 forks source link

[Request] fixing plurals #7

Closed l0g4n1337 closed 2 years ago

l0g4n1337 commented 2 years ago

Your bot is perfect, and I love it, it's the best music bot I've ever tried. But there are some little things that I think should be fixed! The plural forms are one of them. It's really bad to read musica(s) or anything in parenthesis. Could you update the coverters.py and add an option similar to the one that manages the time? For example, if a tracks is > 1 convert the text directly into musicas? type for this part of the code that displays the number of songs. The same could be done for so many other things like server owner in the about section etc.

embed.description = f"{len(tracks.tracks)} música(s){time_format(total_duration)}{inter.author.mention}"

Thanks!

l0g4n1337 commented 2 years ago

So, I would say that for the code I posted, just remove (s) and write the word directly in the plural. When requesting a single song, the song author is displayed and for multiple songs the number of songs and the word in plural are displayed.

single song request: author is displayed. Discord_JUNolaLhUg

multiple request: the number of songs + the plural word is displayed

Discord_3sMwdLzsqk