From b733f05293af81ca805e433b9c6c3018728b76f4 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 12 Jan 2021 20:29:02 +0100 Subject: [PATCH] Added Discord Presence Changes + Message History saving --- run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.py b/run.py index 6941dc5..d023ac6 100644 --- a/run.py +++ b/run.py @@ -31,6 +31,7 @@ def printversion(): async def download(): + await bot.change_presence(activity=discord.Game(name=" downloading Message History")) for trainchannel in config["trainchannels"]: channel = await bot.fetch_channel(trainchannel[0]) counter = 0 @@ -39,6 +40,8 @@ async def download(): messages[counter] = message.content counter += 1 messages.reverse() + with open(str(trainchannel[0]) + ".yml", "w") as logfile: + yaml.dump(messages, logfile) @bot.event