From 22beb0e0abeaf7551477a1f80693f8508cc24cf5 Mon Sep 17 00:00:00 2001 From: Mirzaev Date: Tue, 22 Nov 2022 05:45:04 +1000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0=D0=B3=D0=B0=20(@club-12?= =?UTF-8?q?3123123)=20=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=88=D0=B0=D0=BD=D1=81=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.lock | 21 ++++++++++--------- .../bobby/system/programs/reply_to_group.php | 6 +++--- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/composer.lock b/composer.lock index b1ce23c..2a695a7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6779413522c40533861a4ffbaf0c3eb2", + "content-hash": "dd84f3cb81bea4e54fa886c555d4162e", "packages": [ { "name": "guzzlehttp/guzzle", @@ -500,11 +500,11 @@ }, { "name": "mirzaev/vk", - "version": "4.4.0", + "version": "4.5.0", "source": { "type": "git", "url": "https://git.mirzaev.sexy/mirzaev/vk", - "reference": "e670be5816177260626f43d1795f6180320395b8" + "reference": "39d13d9020c41d03f389254a4c2cda97cb61b8de" }, "require": { "guzzlehttp/guzzle": "^7.5", @@ -548,15 +548,15 @@ "docs": "https://git.mirzaev.sexy/mirzaev/vk/wiki", "issues": "https://git.mirzaev.sexy/mirzaev/vk/issues" }, - "time": "2022-11-08T15:12:50+00:00" + "time": "2022-11-10T13:15:06+00:00" }, { "name": "mirzaev/vk-arangodb", - "version": "1.0.x-dev", + "version": "2.x-dev", "source": { "type": "git", "url": "https://git.mirzaev.sexy/mirzaev/vk-arangodb", - "reference": "9e17928451e84d27cd669043c0c6a3b4dc9f17ac" + "reference": "dd90f0adbeedb846ae368162d4020e8af01a24e8" }, "require": { "guzzlehttp/guzzle": "~7.5", @@ -602,17 +602,18 @@ "type": "funding" } ], - "time": "2022-11-07T04:09:30+00:00" + "time": "2022-11-13T17:09:13+00:00" }, { "name": "mirzaev/vk-chat", - "version": "1.1.0", + "version": "2.0.x-dev", "source": { "type": "git", "url": "https://git.mirzaev.sexy/mirzaev/vk-chat", - "reference": "dae9b2b5b19796029e0e67f2194f74b21041741f" + "reference": "3a448ea83c4cbb22cd50a8a226e93f689a320588" }, "require": { + "mirzaev/vk": "^4.5", "php": "^8.1" }, "type": "vk-module", @@ -651,7 +652,7 @@ "type": "funding" } ], - "time": "2022-11-08T15:10:17+00:00" + "time": "2022-11-10T13:21:15+00:00" }, { "name": "monolog/monolog", diff --git a/mirzaev/vk/robot/bobby/system/programs/reply_to_group.php b/mirzaev/vk/robot/bobby/system/programs/reply_to_group.php index 8bef535..b2864f0 100644 --- a/mirzaev/vk/robot/bobby/system/programs/reply_to_group.php +++ b/mirzaev/vk/robot/bobby/system/programs/reply_to_group.php @@ -45,17 +45,17 @@ class reply_to_group extends program // Ответ на сообщение Бобби Мирзаева // Отправка сообщения с ролевым действием - $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text("@club217012993 (Бобби) избил @id$sender->id ($sender->first_name) до полусмерти")->mentions(false)); + if (rand(0, 100) < 50) $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text("@club217012993 (Бобби) избил @id$sender->id ($sender->first_name) до полусмерти")->mentions(false)); } else if ($update['object']['message']['reply_message']['from_id'] === -191417381) { // Ответ на сообщение Шамиля Мирзаева // Отправка сообщения с ролевым действием - $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text('Как дела, @club191417381 (брат)? Давай свалим отсюда?')->mentions(false)); + if (rand(0, 100) < 20) $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text('Как дела, @club191417381 (брат)? Давай свалим отсюда?')->mentions(false)); } else { // Ответ на сообщение другой группы // Отправка сообщения с ролевым действием - $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text('@club' . $update['object']['message']['reply_message']['from_id'] . ' (Слышь), здристни отсюда')->mentions(false)); + if (rand(0, 100) < 10) $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text('@club' . trim((string) $update['object']['message']['reply_message']['from_id'], '-') . ' (Слышь), здристни отсюда')->mentions(false)); } // Завершение выполнения команд