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):