From f4f7b038df14c1f415fcbcc44b1193387a1f34c9 Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 29 Mar 2024 22:07:12 +0100 Subject: [PATCH] 123 --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index 0a6f887..5d06e5b 100644 --- a/bot.py +++ b/bot.py @@ -589,6 +589,9 @@ async def check_data(): # TODO: dlaczego sie tu wypierdala logger.info("Heartbeat of cleanup proc") channel = client.get_channel(1062047571557744721) + messages = [message async for message in channel.history(limit=1)] + for mess in messages: + channel = mess.channel if os.path.getsize(LOGFILE) > 6000000: await channel.send( "*Conjurer porządkuje bar, wypala szklanki do czysta miotaczem płomieni ze swojej zbroi i ogólnie wygląda na zajętego....*"