Compare commits

..

No commits in common. "1.1.x" and "stable" have entirely different histories.

4 changed files with 17 additions and 19 deletions

View File

@ -38,9 +38,9 @@
"triagens/arangodb": "~3.8", "triagens/arangodb": "~3.8",
"guzzlehttp/guzzle": "^7.4", "guzzlehttp/guzzle": "^7.4",
"mirzaev/arangodb": "^1.0", "mirzaev/arangodb": "^1.0",
"mirzaev/vk": "^4.5", "mirzaev/vk": "^4.4",
"mirzaev/vk-arangodb": "^2.0", "mirzaev/vk-arangodb": "^1.0.1",
"mirzaev/vk-chat": "^2.0" "mirzaev/vk-chat": "^1.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

21
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "dd84f3cb81bea4e54fa886c555d4162e", "content-hash": "6779413522c40533861a4ffbaf0c3eb2",
"packages": [ "packages": [
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
@ -500,11 +500,11 @@
}, },
{ {
"name": "mirzaev/vk", "name": "mirzaev/vk",
"version": "4.5.0", "version": "4.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.mirzaev.sexy/mirzaev/vk", "url": "https://git.mirzaev.sexy/mirzaev/vk",
"reference": "39d13d9020c41d03f389254a4c2cda97cb61b8de" "reference": "e670be5816177260626f43d1795f6180320395b8"
}, },
"require": { "require": {
"guzzlehttp/guzzle": "^7.5", "guzzlehttp/guzzle": "^7.5",
@ -548,15 +548,15 @@
"docs": "https://git.mirzaev.sexy/mirzaev/vk/wiki", "docs": "https://git.mirzaev.sexy/mirzaev/vk/wiki",
"issues": "https://git.mirzaev.sexy/mirzaev/vk/issues" "issues": "https://git.mirzaev.sexy/mirzaev/vk/issues"
}, },
"time": "2022-11-10T13:15:06+00:00" "time": "2022-11-08T15:12:50+00:00"
}, },
{ {
"name": "mirzaev/vk-arangodb", "name": "mirzaev/vk-arangodb",
"version": "2.x-dev", "version": "1.0.x-dev",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.mirzaev.sexy/mirzaev/vk-arangodb", "url": "https://git.mirzaev.sexy/mirzaev/vk-arangodb",
"reference": "dd90f0adbeedb846ae368162d4020e8af01a24e8" "reference": "9e17928451e84d27cd669043c0c6a3b4dc9f17ac"
}, },
"require": { "require": {
"guzzlehttp/guzzle": "~7.5", "guzzlehttp/guzzle": "~7.5",
@ -602,18 +602,17 @@
"type": "funding" "type": "funding"
} }
], ],
"time": "2022-11-13T17:09:13+00:00" "time": "2022-11-07T04:09:30+00:00"
}, },
{ {
"name": "mirzaev/vk-chat", "name": "mirzaev/vk-chat",
"version": "2.0.x-dev", "version": "1.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.mirzaev.sexy/mirzaev/vk-chat", "url": "https://git.mirzaev.sexy/mirzaev/vk-chat",
"reference": "3a448ea83c4cbb22cd50a8a226e93f689a320588" "reference": "dae9b2b5b19796029e0e67f2194f74b21041741f"
}, },
"require": { "require": {
"mirzaev/vk": "^4.5",
"php": "^8.1" "php": "^8.1"
}, },
"type": "vk-module", "type": "vk-module",
@ -652,7 +651,7 @@
"type": "funding" "type": "funding"
} }
], ],
"time": "2022-11-10T13:21:15+00:00" "time": "2022-11-08T15:10:17+00:00"
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",

View File

@ -45,17 +45,17 @@ class reply_to_group extends program
// Ответ на сообщение Бобби Мирзаева // Ответ на сообщение Бобби Мирзаева
// Отправка сообщения с ролевым действием // Отправка сообщения с ролевым действием
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)); $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) { } else if ($update['object']['message']['reply_message']['from_id'] === -191417381) {
// Ответ на сообщение Шамиля Мирзаева // Ответ на сообщение Шамиля Мирзаева
// Отправка сообщения с ролевым действием // Отправка сообщения с ролевым действием
if (rand(0, 100) < 20) $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text('Как дела, @club191417381 (брат)? Давай свалим отсюда?')->mentions(false)); $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text('Как дела, @club191417381 (брат)? Давай свалим отсюда?')->mentions(false));
} else { } else {
// Ответ на сообщение другой группы // Ответ на сообщение другой группы
// Отправка сообщения с ролевым действием // Отправка сообщения с ролевым действием
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)); $core->message($robot->message()->destination($update['object']['message']['peer_id'])->text('@club' . $update['object']['message']['reply_message']['from_id'] . ' (Слышь), здристни отсюда')->mentions(false));
} }
// Завершение выполнения команд // Завершение выполнения команд

View File

@ -1,2 +1 @@
bobby.php arangodb.php
vk.php