diff --git a/extensions/highscores.py b/extensions/highscores.py index 7dc8c75..512337e 100644 --- a/extensions/highscores.py +++ b/extensions/highscores.py @@ -14,7 +14,7 @@ from discord.ext import commands ) async def highscores(ctx, limit=15): filename = str(ctx.channel.id) + ".log" - with open("chatgpt/logs/" + filename, 'r', encoding="utf-8") as logfile: + with open("data/chatgpt/logs/" + filename, 'r', encoding="utf-8") as logfile: data = logfile.readlines() logfile.close() @@ -73,8 +73,8 @@ async def highscores_server(ctx, limit=15): user_message_counts = {} data = [] - for filename in os.listdir("chatgpt/logs/"): - with open("chatgpt/logs/" + filename, 'r', encoding="utf-8") as logfile: + for filename in os.listdir("data/chatgpt/logs/"): + with open("data/chatgpt/logs/" + filename, 'r', encoding="utf-8") as logfile: data += logfile.readlines() logfile.close() user_message_counts = {}