diff --git a/bot/handlers/message_handler.py b/bot/handlers/message_handler.py index 20b0f9c..0f906cf 100644 --- a/bot/handlers/message_handler.py +++ b/bot/handlers/message_handler.py @@ -28,7 +28,11 @@ class MessageHandler: bot.test_commands = self.test_commands # Regex for detecting "in X time" patterns - self.time_pattern = re.compile(r'in\s+(\d+\s+(?:hour|hours|minute|minutes|day|days|second|seconds)s?)', re.IGNORECASE) + self.time_pattern = re.compile( + r'in\s+((?:\d+\s*(?:seconds?|minutes?|hours?|days?|s|m|h|d)\s*)+)', + re.IGNORECASE + ) + def parse_relative_time(self, time_str): """