From 37841f17f95c594a8059e9628a203c13a1c2a713 Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 21 Jul 2023 13:06:12 +0200 Subject: [PATCH] Fixes --- bot.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index bd31012..051bc10 100644 --- a/bot.py +++ b/bot.py @@ -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: