renamed word counts and fixed sorting
This commit is contained in:
parent
c2d26f99fa
commit
8ed278db7d
@ -52,7 +52,7 @@ async def count_reader(message): #returns message with counts
|
|||||||
else:
|
else:
|
||||||
for filey in files:
|
for filey in files:
|
||||||
|
|
||||||
split_filey = filey.split(',')
|
split_filey = filey.split('_')
|
||||||
|
|
||||||
userid = split_filey[1].split('.')
|
userid = split_filey[1].split('.')
|
||||||
userid = userid[0]
|
userid = userid[0]
|
||||||
@ -282,7 +282,7 @@ async def on_message(message):
|
|||||||
|
|
||||||
count = message.content.lower().count(slovo)
|
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):
|
if os.path.exists(file_path):
|
||||||
pass
|
pass
|
||||||
@ -303,5 +303,5 @@ async def on_message(message):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
TOKEN = open("sus_bot_token.txt")
|
TOKEN = open("../sus_bot_token.txt", 'r').read()
|
||||||
client.run(TOKEN)
|
client.run(TOKEN)
|
||||||
|
Loading…
Reference in New Issue
Block a user