From 72974f560cac66a36bcbb8436e404d156d5a7dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Bagi=C5=84ski?= Date: Sun, 2 Jul 2023 18:11:35 +0200 Subject: [PATCH] fixed --- modules/questions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/questions.py b/modules/questions.py index a47c647..3649a6f 100644 --- a/modules/questions.py +++ b/modules/questions.py @@ -93,7 +93,7 @@ def __init__(self) -> None: ################### # How often Stampy posts random not started questions to `#general` - self.not_started_question_autopost_interval = timedelta(hours=6) + self.not_started_question_autopost_interval = timedelta(hours=24) # Time of last (attempted) autopost of not started question self.last_not_started_autopost_attempt_dt = ( @@ -363,7 +363,7 @@ async def last_msg_in_general_was_autoposted(self) -> bool: channel = cast( TextChannel, self.utils.client.get_channel(int(general_channel_id)) ) - async for msg in channel.history(limit=1): + async for msg in channel.history(limit=20): if msg.content.startswith(self.AUTOPOST_NOT_STARTED_MSG_PREFIX): return True return False