From 068f2d0cc9366f87d856a2881dffa1238103eb12 Mon Sep 17 00:00:00 2001 From: mercury Date: Tue, 16 Apr 2024 17:51:23 +0400 Subject: [PATCH] improve message update --- app/bot.php | 3 ++- version | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index d84fa25..1a1f4d9 100644 --- a/app/bot.php +++ b/app/bot.php @@ -999,9 +999,10 @@ class Bot if (!empty($last) && $last != $this->last && $last != $current) { $this->last = $last; $diff = array_slice(explode("\n", $last), 0, count(explode("\n", $last)) - count(explode("\n", $current))); + $diff = array_slice($diff, 0, 10); if (!empty($diff)) { foreach ($c['admin'] as $k => $v) { - $this->send($v, "update:\n{$diff[0]}"); + $this->send($v, implode("\n", $diff)); } } } diff --git a/version b/version index 8d3d155..daab907 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +16.04.2024 v1.30.1 +- улучшение сообщения об обновлениях 16.04.2024 v1.30 - улучшение скрипта обновления 16.04.2024 v1.29