From ba8209b8af53b1c005744cbf2cc4513d63166c66 Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 29 Mar 2024 22:45:44 +0100 Subject: [PATCH] aa --- bot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index ffede84..fd2c064 100644 --- a/bot.py +++ b/bot.py @@ -588,7 +588,7 @@ async def check_data(): # trunk-ignore(codespell/misspelled) # TODO: dlaczego sie tu wypierdala logger.info("Heartbeat of cleanup proc") - channel = client.get_channel(1062047571557744721) + channel = client.get_channel(1062047367337095268) messages = [message async for message in channel.history(limit=1)] for mess in messages: channel = mess.channel @@ -651,10 +651,14 @@ async def check_data(): logger.info(tdelta) global TIME_BETWEEN_CALLS if tdelta > TIME_BETWEEN_CALLS: - TIME_BETWEEN_CALLS = 600 #temp + logger.info("Spontaneous call") + TIME_BETWEEN_CALLS = 60000 #temp random, set after each call + logger.info(TIME_BETWEEN_CALLS) LAST_SPONTANEOUS_CALL = datetime.now() async with channel.typing(): message = await get_random_cyclic_message() + logger.info("Odpowiedz") + logger.info(message) await channel.send(message)