diff --git a/bot.py b/bot.py index 9f812a8..7774abe 100644 --- a/bot.py +++ b/bot.py @@ -828,7 +828,7 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None): logger.info("Słowo kluczowe: %s", word) itr = 0 async for file in async_iterator_generator(music_file_list): - file = await file.split(SEPARATOR_FILE_PATH) + file = file.split(SEPARATOR_FILE_PATH) char_remove = [ ".", @@ -855,7 +855,7 @@ async def wyszukaj(ctx, how_many=0, slowa_kluczowe=None): all_words = [] async for f_iter in async_iterator_generator(file): async for char in async_iterator_generator(char_remove): - f_iter = await f_iter.replace(char, "") + f_iter = f_iter.replace(char, "") tmp = f_iter.split() all_words.extend(tmp) pingu = 1