From 2a3e8e393cc35f9b2b5cecd9e160dc7f8f8a071f Mon Sep 17 00:00:00 2001 From: mercury Date: Mon, 15 Apr 2024 12:04:52 +0400 Subject: [PATCH] improve timer --- app/bot.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 6545e1a..754dc95 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1051,7 +1051,10 @@ class Bot foreach ($items as $k => $v) { if (($t = gmdate($k, $seconds) - $v['diff']) > 0) { $text .= " $t{$v['sign']}"; - break; + if (!empty($i)) { + break; + } + $i++; } } return trim($text) ?: '♾';