diff --git a/bot.py b/bot.py index d16a12d..0a6f887 100644 --- a/bot.py +++ b/bot.py @@ -588,8 +588,8 @@ async def check_data(): # trunk-ignore(codespell/misspelled) # TODO: dlaczego sie tu wypierdala logger.info("Heartbeat of cleanup proc") + channel = client.get_channel(1062047571557744721) if os.path.getsize(LOGFILE) > 6000000: - channel = client.get_channel(1062047571557744721) 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....*" ) @@ -602,7 +602,6 @@ async def check_data(): ) if os.path.getsize(MEMORY_FIVE_MUZYKA) > 300000: - channel = client.get_channel(1062047571557744721) 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....*" ) @@ -648,7 +647,6 @@ async def check_data(): tdelta = tdelta.total_seconds() logger.info(tdelta) if tdelta > 12: - channel = client.get_channel(1062047571557744721) LAST_SPONTANEOUS_CALL = datetime.now() with channel.typing(): message = get_random_cyclic_message()