improve timer

This commit is contained in:
mercury
2024-04-15 12:04:52 +04:00
parent 332b74e366
commit 2a3e8e393c
+4 -1
View File
@@ -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) ?: '♾';