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....*"