Added progress counter for downloading
This commit is contained in:
parent
2437707b2c
commit
a4ec294723
13
run.py
13
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...")
|
||||
|
|
Loading…
Reference in a new issue