diff --git a/bot_newest_version/susmain2_1.py b/bot_newest_version/susmain2_1.py index 0c1c01f..97ea54a 100644 --- a/bot_newest_version/susmain2_1.py +++ b/bot_newest_version/susmain2_1.py @@ -52,7 +52,7 @@ async def count_reader(message): #returns message with counts else: for filey in files: - split_filey = filey.split(',') + split_filey = filey.split('_') userid = split_filey[1].split('.') userid = userid[0] @@ -282,7 +282,7 @@ async def on_message(message): count = message.content.lower().count(slovo) - file_path = str("word_counts/" + slovo + ',' + msg_author_id + ".txt") + file_path = str("word_counts/" + slovo + '_' + msg_author_id + ".txt") if os.path.exists(file_path): pass @@ -303,5 +303,5 @@ async def on_message(message): pass -TOKEN = open("sus_bot_token.txt") +TOKEN = open("../sus_bot_token.txt", 'r').read() client.run(TOKEN)