This commit is contained in:
2023-07-21 13:06:12 +02:00
parent 8f4bd42ff6
commit 37841f17f9
+10 -2
View File
@@ -902,6 +902,14 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None):
async def remove_characters(string, character):
"""
The `remove_characters` function removes all occurrences of a specified character from a given
string.
:param string: The string parameter is the input string from which characters will be removed
:param character: The character parameter is the character that you want to remove from the string
:return: a new string where all occurrences of the specified character have been removed.
"""
return string.replace(character, "")
@@ -1362,7 +1370,7 @@ async def zrob_mi_plejliste(ctx):
if metadata.tag.title:
reply += " z prywatnej kolekcji Hammera i na Twoją specjalną rpośbę.\n"
else:
reply += f"{index}. {plik[1]} z prywatnej kolekcji Hammera."
reply += f"{index}. {plik[1]} z prywatnej kolekcji Hammera.\n"
index += 1
if len(reply) > 1800:
@@ -1601,7 +1609,7 @@ async def zagraj_muzyke_mego_ludu(ctx):
if metadata.tag.title:
reply += " z prywatnej kolekcji Hammera i na Twoją specjalną rpośbę.\n"
else:
reply += f"{index}. {plik[1]} z prywatnej kolekcji Hammera."
reply += f"{index}. {plik[1]} z prywatnej kolekcji Hammera.\n"
index += 1
if len(reply) > 1800: