From 4c3d68246c36bb979cd1946093e3d1922c07c992 Mon Sep 17 00:00:00 2001 From: blackfur <64478051+theblackfurguy@users.noreply.github.com> Date: Tue, 16 Feb 2021 18:46:24 +0100 Subject: [PATCH] Added progress counter for downloading --- run.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/run.py b/run.py index bdc4bc3..f118880 100644 --- a/run.py +++ b/run.py @@ -59,19 +59,6 @@ async def download(): messages.reverse() with open("chatlogs/"+ str(trainchannel[0])+".tmp.yml", "w") as logfile: yaml.dump(messages, logfile) - # channel = await bot.fetch_channel(trainchannel[0]) - # counter = 0 - # messages = [None] * trainchannel[1] - # async for message in channel.history(limit=trainchannel[1]): - # if message.content is None: - # print("Found Null message, ignoring...") - # else: - # messages[counter] = message.content - # counter += 1 - # messages.reverse() - # with open("chatlogs/" + str(trainchannel[0]) + ".tmp.yml", "w") as logfile: - # yaml.dump(messages, logfile) - async def train(): print("Starting training...")