From a260017c7b346342e7c0a465900d525c9a783edf Mon Sep 17 00:00:00 2001 From: MarlaB Date: Fri, 22 Mar 2024 22:29:20 +0100 Subject: [PATCH] repaired countreader --- bot_newest_version/susmain3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot_newest_version/susmain3.py b/bot_newest_version/susmain3.py index 0c45ad6..b45595a 100644 --- a/bot_newest_version/susmain3.py +++ b/bot_newest_version/susmain3.py @@ -93,7 +93,7 @@ async def count_reader(message): #count command returns message w for file_path in directory: for path in file_path[2]: - if path.startswith(slovo): + if path.split("_")[0] == slovo: files.append(path) else: @@ -299,7 +299,7 @@ async def count(ctx): @client.command() async def pomoc(ctx): - await (help_command(ctx.message)) + await help_command(ctx.message) @client.command() async def etime(ctx):