renamed word counts and fixed sorting

This commit is contained in:
MarlaB 2024-03-12 19:18:06 +01:00
parent c2d26f99fa
commit 8ed278db7d

View File

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