Исправление бага (@club-123123123) и добавление шанса на ответ
This commit is contained in:
parent
ad8e89835e
commit
22beb0e0ab
|
@ -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",
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
// Завершение выполнения команд
|
||||
|
|
Loading…
Reference in New Issue