Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
07ace039c9 | ||
![]() |
64a88c9f4e | ||
![]() |
31df94665a | ||
![]() |
d307d4220e | ||
![]() |
2f9352fb13 | ||
![]() |
b7bdd2078b | ||
![]() |
a1d0837d86 | ||
![]() |
864ea8ca6d | ||
![]() |
19f5275fe9 | ||
![]() |
085974f740 | ||
![]() |
4840041054 | ||
![]() |
3703a61e5c | ||
![]() |
b769c682d1 |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,3 +1 @@
|
||||
/logs
|
||||
/temp
|
||||
/vendor
|
||||
/vendor
|
||||
|
22
LICENSE
22
LICENSE
@@ -1,22 +0,0 @@
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Это свободная программа: вы можете перераспространять ее и/или изменять
|
||||
ее на условиях Стандартной общественной лицензии GNU в том виде, в каком
|
||||
она была опубликована Фондом свободного программного обеспечения; либо
|
||||
версии 3 лицензии, либо (по вашему выбору) любой более поздней версии.
|
||||
|
||||
Эта программа распространяется в надежде, что она будет полезной,
|
||||
но БЕЗО ВСЯКИХ ГАРАНТИЙ; даже без неявной гарантии ТОВАРНОГО ВИДА
|
||||
или ПРИГОДНОСТИ ДЛЯ ОПРЕДЕЛЕННЫХ ЦЕЛЕЙ. Подробнее см. в Стандартной
|
||||
общественной лицензии GNU <https://www.gnu.org/licenses/>.
|
22
README.md
22
README.md
@@ -3,22 +3,28 @@
|
||||
|
||||
### Установка:
|
||||
```sh
|
||||
$ composer install hood/vk
|
||||
$ composer install mirzaev/vk
|
||||
```
|
||||
### Пример использования:
|
||||
```php
|
||||
use hood\vk\core;
|
||||
use hood\accounts\vk;
|
||||
use mirzaev\vk\core;
|
||||
use mirzaev\accounts\vk;
|
||||
|
||||
// Подключение библеотек
|
||||
require_once './vendor/autoload.php';
|
||||
|
||||
// Инициализация пользователя ВКонтакте
|
||||
$account = (new vk($id))->auth('login', 'password')->key($project_id);
|
||||
// Инициализация ядра
|
||||
$core = core::init();
|
||||
|
||||
// Инициализация менеджера аккаунтов ВКонтакте
|
||||
$vk = new vk(ACCOUNT_ID);
|
||||
|
||||
// Инициализация аккаунта ВКонтакте
|
||||
$account = $vk->auth(ACCOUNT_LOGIN, ACCOUNT_PASSWORD)->key(PROJECT_KEY);
|
||||
|
||||
// Инициализация робота-группы
|
||||
$robot = core::init()->group($account);
|
||||
$robot = $core->group($account);
|
||||
|
||||
// Отправка сообщения
|
||||
$robot->message($to, 'Привет, я создал робота!');
|
||||
```
|
||||
$robot->message(RECEIVER_ID, 'Привет, я создал робота!');
|
||||
```
|
||||
|
@@ -14,11 +14,6 @@
|
||||
"email": "red@hood.su",
|
||||
"homepage": "https://hood.su/mirzaev",
|
||||
"role": "Programmer"
|
||||
},
|
||||
{
|
||||
"name": "Konstantin Tarashchansky Eleno-Borisovich",
|
||||
"homepage": "https://hood.su/flower_studios",
|
||||
"role": "Programmer"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
|
321
composer.lock
generated
321
composer.lock
generated
@@ -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": "fb52a74dd40d0ceeb0c3745e52fe6a94",
|
||||
"content-hash": "44a0fee472ef1476f5e2961e46bcbc3e",
|
||||
"packages": [
|
||||
{
|
||||
"name": "guzzlehttp/guzzle",
|
||||
@@ -166,29 +166,32 @@
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/psr7",
|
||||
"version": "1.8.2",
|
||||
"version": "2.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/psr7.git",
|
||||
"reference": "dc960a912984efb74d0a90222870c72c87f10c91"
|
||||
"reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/dc960a912984efb74d0a90222870c72c87f10c91",
|
||||
"reference": "dc960a912984efb74d0a90222870c72c87f10c91",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
|
||||
"reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.4.0",
|
||||
"psr/http-message": "~1.0",
|
||||
"ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
|
||||
"php": "^7.2.5 || ^8.0",
|
||||
"psr/http-factory": "^1.0",
|
||||
"psr/http-message": "^1.0",
|
||||
"ralouphie/getallheaders": "^3.0"
|
||||
},
|
||||
"provide": {
|
||||
"psr/http-factory-implementation": "1.0",
|
||||
"psr/http-message-implementation": "1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-zlib": "*",
|
||||
"phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
|
||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
||||
"http-interop/http-factory-tests": "^0.9",
|
||||
"phpunit/phpunit": "^8.5.8 || ^9.3.10"
|
||||
},
|
||||
"suggest": {
|
||||
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
||||
@@ -196,16 +199,13 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.7-dev"
|
||||
"dev-master": "2.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"GuzzleHttp\\Psr7\\": "src/"
|
||||
},
|
||||
"files": [
|
||||
"src/functions_include.php"
|
||||
]
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
@@ -220,6 +220,11 @@
|
||||
{
|
||||
"name": "Tobias Schultze",
|
||||
"homepage": "https://github.com/Tobion"
|
||||
},
|
||||
{
|
||||
"name": "Márk Sági-Kazár",
|
||||
"email": "mark.sagikazar@gmail.com",
|
||||
"homepage": "https://sagikazarmark.hu"
|
||||
}
|
||||
],
|
||||
"description": "PSR-7 message implementation that also provides common utility methods",
|
||||
@@ -235,64 +240,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/psr7/issues",
|
||||
"source": "https://github.com/guzzle/psr7/tree/1.8.2"
|
||||
"source": "https://github.com/guzzle/psr7/tree/2.0.0"
|
||||
},
|
||||
"time": "2021-04-26T09:17:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "hood/accounts",
|
||||
"version": "0.1.x-dev",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://git.hood.su/hood/accounts",
|
||||
"reference": "3fdf607e094d50902f612588c34ebca7a4e245bf"
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"ext-libxml": "*",
|
||||
"guzzlehttp/guzzle": "^7.2",
|
||||
"php": "~8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~9.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"hood\\accounts\\": "hood/accounts/system"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"AGPL-3.0-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Arsen Mirzaev Tatyano-Muradovich",
|
||||
"email": "red@hood.su",
|
||||
"homepage": "https://hood.su/mirzaev",
|
||||
"role": "Programmer"
|
||||
}
|
||||
],
|
||||
"description": "Менеджер аккаунтов",
|
||||
"homepage": "https://git.hood.su/hood/accounts",
|
||||
"keywords": [
|
||||
"accounts",
|
||||
"hood",
|
||||
"vk"
|
||||
],
|
||||
"support": {
|
||||
"chat": "https://vk.me/darkweb228",
|
||||
"docs": "https://git.hood.su/hood/accounts/manual",
|
||||
"issues": "https://git.hood.su/hood/accounts/issues"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://git.hood.su/hood/accounts/thanks",
|
||||
"type": "Hood"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-28T11:59:37+00:00"
|
||||
"time": "2021-06-30T20:03:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "jasny/error-handler",
|
||||
@@ -347,18 +297,73 @@
|
||||
"abandoned": true,
|
||||
"time": "2017-01-25T01:27:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "mirzaev/accounts",
|
||||
"version": "0.1.x-dev",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://git.hood.su/mirzaev/accounts",
|
||||
"reference": "3fdf607e094d50902f612588c34ebca7a4e245bf"
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"ext-libxml": "*",
|
||||
"guzzlehttp/guzzle": "^7.2",
|
||||
"php": "~8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~9.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"hood\\accounts\\": "hood/accounts/system"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"AGPL-3.0-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Arsen Mirzaev Tatyano-Muradovich",
|
||||
"email": "red@hood.su",
|
||||
"homepage": "https://hood.su/mirzaev",
|
||||
"role": "Programmer"
|
||||
}
|
||||
],
|
||||
"description": "Менеджер аккаунтов",
|
||||
"homepage": "https://git.hood.su/hood/accounts",
|
||||
"keywords": [
|
||||
"accounts",
|
||||
"hood",
|
||||
"vk"
|
||||
],
|
||||
"support": {
|
||||
"chat": "https://vk.me/darkweb228",
|
||||
"docs": "https://git.hood.su/hood/accounts/manual",
|
||||
"issues": "https://git.hood.su/hood/accounts/issues"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://git.hood.su/hood/accounts/thanks",
|
||||
"type": "Hood"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-28T11:59:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "monolog/monolog",
|
||||
"version": "1.26.0",
|
||||
"version": "1.26.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Seldaek/monolog.git",
|
||||
"reference": "2209ddd84e7ef1256b7af205d0717fb62cfc9c33"
|
||||
"reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/2209ddd84e7ef1256b7af205d0717fb62cfc9c33",
|
||||
"reference": "2209ddd84e7ef1256b7af205d0717fb62cfc9c33",
|
||||
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/c6b00f05152ae2c9b04a448f99c7590beb6042f5",
|
||||
"reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -419,7 +424,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Seldaek/monolog/issues",
|
||||
"source": "https://github.com/Seldaek/monolog/tree/1.26.0"
|
||||
"source": "https://github.com/Seldaek/monolog/tree/1.26.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -431,7 +436,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-12-14T12:56:38+00:00"
|
||||
"time": "2021-05-28T08:32:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-client",
|
||||
@@ -485,6 +490,61 @@
|
||||
},
|
||||
"time": "2020-06-29T06:28:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-factory",
|
||||
"version": "1.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-factory.git",
|
||||
"reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
|
||||
"reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.0.0",
|
||||
"psr/http-message": "^1.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interfaces for PSR-7 HTTP message factories",
|
||||
"keywords": [
|
||||
"factory",
|
||||
"http",
|
||||
"message",
|
||||
"psr",
|
||||
"psr-17",
|
||||
"psr-7",
|
||||
"request",
|
||||
"response"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-factory/tree/master"
|
||||
},
|
||||
"time": "2019-04-30T12:38:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-message",
|
||||
"version": "1.0.1",
|
||||
@@ -540,16 +600,16 @@
|
||||
},
|
||||
{
|
||||
"name": "psr/log",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/log.git",
|
||||
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
|
||||
"reference": "d49695b909c3b7628b6289db5479a1c204601f11"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
|
||||
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
|
||||
"url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
|
||||
"reference": "d49695b909c3b7628b6289db5479a1c204601f11",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -573,7 +633,7 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for logging libraries",
|
||||
@@ -584,9 +644,9 @@
|
||||
"psr-3"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/log/tree/1.1.3"
|
||||
"source": "https://github.com/php-fig/log/tree/1.1.4"
|
||||
},
|
||||
"time": "2020-03-23T09:12:05+00:00"
|
||||
"time": "2021-05-03T11:20:27+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ralouphie/getallheaders",
|
||||
@@ -763,16 +823,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v4.10.4",
|
||||
"version": "v4.12.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e"
|
||||
"reference": "6608f01670c3cc5079e18c1dab1104e002579143"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c6d052fc58cb876152f89f532b95a8d7907e7f0e",
|
||||
"reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143",
|
||||
"reference": "6608f01670c3cc5079e18c1dab1104e002579143",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -813,22 +873,22 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.10.4"
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0"
|
||||
},
|
||||
"time": "2020-12-20T10:01:03+00:00"
|
||||
"time": "2021-07-21T10:44:31+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phar-io/manifest.git",
|
||||
"reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133"
|
||||
"reference": "97803eca37d319dfa7826cc2437fc020857acb53"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
|
||||
"reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
|
||||
"url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53",
|
||||
"reference": "97803eca37d319dfa7826cc2437fc020857acb53",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -873,9 +933,9 @@
|
||||
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
|
||||
"support": {
|
||||
"issues": "https://github.com/phar-io/manifest/issues",
|
||||
"source": "https://github.com/phar-io/manifest/tree/master"
|
||||
"source": "https://github.com/phar-io/manifest/tree/2.0.3"
|
||||
},
|
||||
"time": "2020-06-27T14:33:11+00:00"
|
||||
"time": "2021-07-20T11:28:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/version",
|
||||
@@ -1473,16 +1533,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "9.5.4",
|
||||
"version": "9.5.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "c73c6737305e779771147af66c96ca6a7ed8a741"
|
||||
"reference": "d0dc8b6999c937616df4fb046792004b33fd31c5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c73c6737305e779771147af66c96ca6a7ed8a741",
|
||||
"reference": "c73c6737305e779771147af66c96ca6a7ed8a741",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d0dc8b6999c937616df4fb046792004b33fd31c5",
|
||||
"reference": "d0dc8b6999c937616df4fb046792004b33fd31c5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1512,7 +1572,7 @@
|
||||
"sebastian/global-state": "^5.0.1",
|
||||
"sebastian/object-enumerator": "^4.0.3",
|
||||
"sebastian/resource-operations": "^3.0.3",
|
||||
"sebastian/type": "^2.3",
|
||||
"sebastian/type": "^2.3.4",
|
||||
"sebastian/version": "^3.0.2"
|
||||
},
|
||||
"require-dev": {
|
||||
@@ -1560,7 +1620,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.4"
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.7"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -1572,7 +1632,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2021-03-23T07:16:29+00:00"
|
||||
"time": "2021-07-19T06:14:47+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/cli-parser",
|
||||
@@ -2080,16 +2140,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/global-state",
|
||||
"version": "5.0.2",
|
||||
"version": "5.0.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/global-state.git",
|
||||
"reference": "a90ccbddffa067b51f574dea6eb25d5680839455"
|
||||
"reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/a90ccbddffa067b51f574dea6eb25d5680839455",
|
||||
"reference": "a90ccbddffa067b51f574dea6eb25d5680839455",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49",
|
||||
"reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2132,7 +2192,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/global-state/issues",
|
||||
"source": "https://github.com/sebastianbergmann/global-state/tree/5.0.2"
|
||||
"source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2140,7 +2200,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2020-10-26T15:55:19+00:00"
|
||||
"time": "2021-06-11T13:31:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/lines-of-code",
|
||||
@@ -2427,20 +2487,21 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"abandoned": true,
|
||||
"time": "2020-09-28T06:45:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/type",
|
||||
"version": "2.3.1",
|
||||
"version": "2.3.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/type.git",
|
||||
"reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2"
|
||||
"reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/81cd61ab7bbf2de744aba0ea61fae32f721df3d2",
|
||||
"reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914",
|
||||
"reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2475,7 +2536,7 @@
|
||||
"homepage": "https://github.com/sebastianbergmann/type",
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/type/issues",
|
||||
"source": "https://github.com/sebastianbergmann/type/tree/2.3.1"
|
||||
"source": "https://github.com/sebastianbergmann/type/tree/2.3.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2483,7 +2544,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2020-10-26T13:18:59+00:00"
|
||||
"time": "2021-06-15T12:49:02+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/version",
|
||||
@@ -2540,16 +2601,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-ctype",
|
||||
"version": "v1.22.1",
|
||||
"version": "v1.23.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
|
||||
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
|
||||
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
|
||||
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2561,7 +2622,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.22-dev"
|
||||
"dev-main": "1.23-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
@@ -2599,7 +2660,7 @@
|
||||
"portable"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1"
|
||||
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2615,20 +2676,20 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-07T16:49:33+00:00"
|
||||
"time": "2021-02-19T12:13:01+00:00"
|
||||
},
|
||||
{
|
||||
"name": "theseer/tokenizer",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/theseer/tokenizer.git",
|
||||
"reference": "75a63c33a8577608444246075ea0af0d052e452a"
|
||||
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a",
|
||||
"reference": "75a63c33a8577608444246075ea0af0d052e452a",
|
||||
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e",
|
||||
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2657,7 +2718,7 @@
|
||||
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
|
||||
"support": {
|
||||
"issues": "https://github.com/theseer/tokenizer/issues",
|
||||
"source": "https://github.com/theseer/tokenizer/tree/master"
|
||||
"source": "https://github.com/theseer/tokenizer/tree/1.2.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2665,7 +2726,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-12T23:59:07+00:00"
|
||||
"time": "2021-07-28T10:34:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "webmozart/assert",
|
||||
@@ -2729,7 +2790,7 @@
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": {
|
||||
"hood/accounts": 20
|
||||
"mirzaev/accounts": 20
|
||||
},
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
|
2
mirzaev/vk/logs/.gitignore
vendored
Normal file
2
mirzaev/vk/logs/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*
|
||||
!.gitignore
|
18
mirzaev/vk/logs/2020.10.07-ERROR.log
Normal file
18
mirzaev/vk/logs/2020.10.07-ERROR.log
Normal file
@@ -0,0 +1,18 @@
|
||||
[2020-10-07 16:14:21] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined method Hood\VK\Robots\Group::token() in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:08:57] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined method Hood\VK\Robots\Group::token() in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:09:35] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined method Hood\VK\Robots\Group::token() in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:16:23] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 3 passed to Hood\VK\Robots\Group::message() must be of the type string, int given, called in D:\Проектs\Репозитории\s.php on line 63 and defined in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:54 Stack trace: #0 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->message() #1 D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php(262): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): Hood\VK\API\LongPoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:54 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:41:46] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$id must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php(131): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(85): Hood\VK\Robots\User->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(70): Hood\VK\Builder->reg() #3 D:\Проектs\Репозитории\s.php(68): Hood\VK\Builder->user() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:42:08] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$id must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php(131): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(85): Hood\VK\Robots\User->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(70): Hood\VK\Builder->reg() #3 D:\Проектs\Репозитории\s.php(68): Hood\VK\Builder->user() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:43:15] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$id must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(68): Hood\VK\Robots\User->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:43:24] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:81 Stack trace: #0 D:\Проектs\Репозитории\s.php(68): Hood\VK\Robots\User->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:81 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:45:29] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать ключ для доступа к LongPoll in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:45:45] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать ключ для доступа к LongPoll in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:46:24] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$key must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(125): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php(79): Hood\VK\Robots\Group->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #3 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:46:31] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:46:40] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$key must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(125): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php(79): Hood\VK\Robots\Group->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #3 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:25] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:31] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:33] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:50] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:48:46] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
46
mirzaev/vk/logs/2020.10.07-INFO.log
Normal file
46
mirzaev/vk/logs/2020.10.07-INFO.log
Normal file
@@ -0,0 +1,46 @@
|
||||
[2020-10-07 15:30:17] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 15:30:17] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 15:31:09] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 15:31:09] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 16:14:21] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 16:14:21] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:08:57] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:08:57] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:09:35] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:09:35] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:16:08] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:16:23] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:16:50] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:22:23] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:24:52] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:25:12] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:32:26] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:36:51] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:41:46] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:41:46] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:42:08] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:42:08] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:43:15] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:43:15] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:43:24] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:43:24] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:45:29] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:45:29] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:45:44] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:45:45] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:46:24] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:46:24] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:46:31] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:46:31] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:46:40] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:46:40] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:25] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:25] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:31] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:31] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:33] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:33] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:50] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:50] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:48:46] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:48:46] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
64
mirzaev/vk/logs/2020.10.07.log
Normal file
64
mirzaev/vk/logs/2020.10.07.log
Normal file
@@ -0,0 +1,64 @@
|
||||
[2020-10-07 15:30:17] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 15:30:17] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 15:31:09] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 15:31:09] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 16:14:21] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 16:14:21] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined method Hood\VK\Robots\Group::token() in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 16:14:21] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:08:57] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:08:57] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined method Hood\VK\Robots\Group::token() in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:08:57] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:09:35] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:09:35] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined method Hood\VK\Robots\Group::token() in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:58 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:09:35] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:16:08] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:16:23] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 3 passed to Hood\VK\Robots\Group::message() must be of the type string, int given, called in D:\Проектs\Репозитории\s.php on line 63 and defined in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:54 Stack trace: #0 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->message() #1 D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php(262): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): Hood\VK\API\LongPoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:54 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:16:23] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:16:50] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:22:23] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:24:52] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:25:12] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:32:26] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:36:51] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:41:46] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:41:46] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$id must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php(131): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(85): Hood\VK\Robots\User->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(70): Hood\VK\Builder->reg() #3 D:\Проектs\Репозитории\s.php(68): Hood\VK\Builder->user() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:41:46] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:42:08] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:42:08] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$id must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php(131): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(85): Hood\VK\Robots\User->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\Builder.php(70): Hood\VK\Builder->reg() #3 D:\Проектs\Репозитории\s.php(68): Hood\VK\Builder->user() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:132 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:42:08] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:43:15] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:43:15] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$id must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(68): Hood\VK\Robots\User->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:43:15] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:43:24] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:43:24] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:81 Stack trace: #0 D:\Проектs\Репозитории\s.php(68): Hood\VK\Robots\User->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\User.php:81 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:43:24] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:45:29] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:45:29] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать ключ для доступа к LongPoll in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:45:29] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:45:44] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:45:45] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать ключ для доступа к LongPoll in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:45:45] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:46:24] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:46:24] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$key must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(125): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php(79): Hood\VK\Robots\Group->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #3 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:46:24] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:46:31] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:46:31] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:46:31] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:46:40] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:46:40] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\RobotAbstract::$key must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(125): Hood\VK\Robots\RobotAbstract->__get() #1 D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php(79): Hood\VK\Robots\Group->__get() #2 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #3 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #4 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:136 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:46:40] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:25] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:25] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:25] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:31] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:31] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:31] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:33] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:33] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:33] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:47:50] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:47:50] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:78 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:47:50] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-07 17:48:46] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-07 17:48:46] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-07 17:48:46] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
35
mirzaev/vk/logs/2020.10.08-ERROR.log
Normal file
35
mirzaev/vk/logs/2020.10.08-ERROR.log
Normal file
@@ -0,0 +1,35 @@
|
||||
[2020-10-08 09:06:40] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:11:12] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:11:35] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\Group::$longpoll must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:133 Stack trace: #0 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #1 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:133 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:11:41] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:12:35] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:12:45] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:12:51] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(62): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:05] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:34] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:39] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:55] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:14:01] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:18:47] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: syntax error, unexpected ';', expecting ')' in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:161 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:21:22] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to a member function postShutdownHandler() on null in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 D:\Проектs\Репозитории\s.php(56): hood\vk\core->log() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:21:34] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to a member function postShutdownHandler() on null in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 D:\Проектs\Репозитории\s.php(56): hood\vk\core->log() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:27:33] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined function \hood\vk\api\methods\messages() in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 D:\Проектs\Репозитории\s.php(62): hood\vk\Robots\robot->__call() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(64): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:28:35] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Return value of hood\vk\Robots\robot::__call() must be an instance of hood\vk\api\methods\method, instance of hood\vk\api\methods\messages returned in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 D:\Проектs\Репозитории\s.php(62): hood\vk\Robots\robot->__call() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(64): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:29:12] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Return value of hood\vk\Robots\robot::__call() must be an instance of hood\vk\api\methods\method, instance of hood\vk\api\methods\messages returned in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 D:\Проектs\Репозитории\s.php(62): hood\vk\Robots\robot->__call() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(64): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:42:46] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 1 passed to hood\vk\api\methods\messages::__construct() must be of the type string, object given, called in D:\Проектs\Репозитории\vk\robots\robot.php on line 179 and defined in D:\Проектs\Репозитории\vk\api\methods\messages.php:30 Stack trace: #0 D:\Проектs\Репозитории\vk\robots\robot.php(179): hood\vk\api\methods\messages->__construct() #1 D:\Проектs\Репозитории\s.php(67): hood\vk\Robots\robot->__call() #2 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #3 D:\Проектs\Репозитории\s.php(82): hood\vk\api\longpoll->handle() #4 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:30 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:02:53] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 2 passed to hood\vk\api\methods\messages::__construct() must be of the type string, array given, called in D:\Проектs\Репозитории\vk\robots\robot.php on line 179 and defined in D:\Проектs\Репозитории\vk\api\methods\messages.php:44 Stack trace: #0 D:\Проектs\Репозитории\vk\robots\robot.php(179): hood\vk\api\methods\messages->__construct() #1 D:\Проектs\Репозитории\s.php(64): hood\vk\Robots\robot->__call() #2 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #3 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #4 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:44 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:03:25] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Typed property hood\vk\api\methods\messages::$robot must not be accessed before initialization in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:04:49] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Typed property hood\vk\api\methods\messages::$robot must not be accessed before initialization in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:05:23] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Cannot access uninitialized non-nullable property hood\vk\api\methods\messages::$attachments by reference in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:06:40] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Cannot access uninitialized non-nullable property hood\vk\api\methods\messages::$attachments by reference in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:14:13] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Class 'Hood\VK\robots\user' not found in D:\Проектs\Репозитории\vk\builder.php:70 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): Hood\VK\builder->user() #1 {main} thrown in D:\Проектs\Репозитории\vk\builder.php:70 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:44:26] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 2 passed to hood\vk\core::__call() must be of the type int, array given, called in D:\Проектs\Репозитории\s.php on line 69 and defined in D:\Проектs\Репозитории\vk\core.php:87 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:87 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:56:29] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 1 passed to hood\vk\Robots\robot::__construct() must be of the type int, object given, called in D:\Проектs\Репозитории\vk\core.php on line 91 and defined in D:\Проектs\Репозитории\vk\robots\robot.php:87 Stack trace: #0 D:\Проектs\Репозитории\vk\core.php(91): hood\vk\Robots\robot->__construct() #1 D:\Проектs\Репозитории\s.php(69): hood\vk\core->__call() #2 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:87 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:56:39] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Return value of hood\vk\core::__call() must be an instance of hood\vk\Robots\robot, none returned in D:\Проектs\Репозитории\vk\core.php:95 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:95 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:57:57] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать адрес сервера in D:\Проектs\Репозитории\vk\robots\user.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\robots\user->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\robots\user.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:58:08] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Class 'hood\vk\Exception' not found in D:\Проектs\Репозитории\vk\core.php:93 Stack trace: #0 D:\Проектs\Репозитории\s.php(58): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:93 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:58:26] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Не найден робот: build in D:\Проектs\Репозитории\vk\core.php:94 Stack trace: #0 D:\Проектs\Репозитории\s.php(58): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:94 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 17:05:01] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать адрес сервера in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\robots\user->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 19:20:35] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать адрес сервера in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\robots\user->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 19:42:21] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined function SHAMIL\sense\core() in D:\Проектs\Репозитории\s.php:60 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:60 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 19:42:34] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined function hood\vk\core() in D:\Проектs\Репозитории\s.php:61 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:61 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
83
mirzaev/vk/logs/2020.10.08-INFO.log
Normal file
83
mirzaev/vk/logs/2020.10.08-INFO.log
Normal file
@@ -0,0 +1,83 @@
|
||||
[2020-10-08 09:06:39] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:06:40] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:11:12] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:11:12] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:11:35] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:11:35] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:11:41] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:11:41] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:12:35] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:12:35] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:12:45] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:12:45] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:12:51] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:12:51] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:05] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:05] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:34] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:34] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:39] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:39] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:55] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:55] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:14:01] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:14:01] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:18:47] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:18:47] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:18:59] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:19:15] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:19:20] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:20:33] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:20:58] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:21:22] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:21:34] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:22:09] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:27:11] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:27:23] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:27:33] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 12:28:34] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:28:35] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 12:29:10] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:29:12] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 12:30:11] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:42:41] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:42:46] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:02:25] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:02:45] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:02:53] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:03:19] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:03:25] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:04:38] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:04:49] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:05:14] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:05:23] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:06:28] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:06:40] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:07:13] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:14:13] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:14:13] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:44:26] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:44:26] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:56:29] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:56:29] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:56:39] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:56:39] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:57:57] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:57:57] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:58:08] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:58:08] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:58:26] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:58:26] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:58:45] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 17:04:09] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 17:05:01] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 17:05:01] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:20:35] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:20:35] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:20:49] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:21] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:21] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:42:34] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:34] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:42:42] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:42] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
118
mirzaev/vk/logs/2020.10.08.log
Normal file
118
mirzaev/vk/logs/2020.10.08.log
Normal file
@@ -0,0 +1,118 @@
|
||||
[2020-10-08 09:06:39] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:06:40] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:06:40] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:11:12] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:11:12] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:11:12] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:11:35] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:11:35] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Error: Typed property Hood\VK\Robots\Group::$longpoll must not be accessed before initialization in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:133 Stack trace: #0 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #1 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php:133 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:11:35] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:11:41] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:11:41] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(61): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:11:41] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:12:35] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:12:35] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:12:35] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:12:45] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:12:45] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:12:45] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:12:51] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:12:51] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(62): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:12:51] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:05] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:05] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:79 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:05] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:34] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:34] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:34] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:39] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:39] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:39] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:13:55] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:13:55] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:13:55] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:14:01] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:14:01] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать идентификатор ВКонтакте in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 D:\Проектs\Репозитории\vk\Hood\VK\robots\Group.php(131): Hood\VK\API\LongPoll->__construct() #1 D:\Проектs\Репозитории\s.php(63): Hood\VK\Robots\Group->__get() #2 {main} thrown in D:\Проектs\Репозитории\vk\Hood\VK\api\LongPoll.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:14:01] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:18:47] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:18:47] Hood\VK\Loggers\Jasmo.ERROR: ErrorException: syntax error, unexpected ';', expecting ')' in D:\Проектs\Репозитории\vk\Hood\VK\robots\RobotAbstract.php:161 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 09:18:47] Hood\VK\Loggers\Jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 09:18:59] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:19:15] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 09:19:20] Hood\VK\Loggers\Jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:20:33] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:20:58] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:21:22] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:21:22] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to a member function postShutdownHandler() on null in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 D:\Проектs\Репозитории\s.php(56): hood\vk\core->log() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:21:34] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:21:34] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to a member function postShutdownHandler() on null in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 D:\Проектs\Репозитории\s.php(56): hood\vk\core->log() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:111 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:22:09] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:27:11] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:27:23] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:27:33] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined function \hood\vk\api\methods\messages() in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 D:\Проектs\Репозитории\s.php(62): hood\vk\Robots\robot->__call() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(64): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:27:33] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 12:28:34] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:28:35] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Return value of hood\vk\Robots\robot::__call() must be an instance of hood\vk\api\methods\method, instance of hood\vk\api\methods\messages returned in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 D:\Проектs\Репозитории\s.php(62): hood\vk\Robots\robot->__call() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(64): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:28:35] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 12:29:10] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:29:12] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Return value of hood\vk\Robots\robot::__call() must be an instance of hood\vk\api\methods\method, instance of hood\vk\api\methods\messages returned in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 D:\Проектs\Репозитории\s.php(62): hood\vk\Robots\robot->__call() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(64): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:179 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:29:12] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 12:30:11] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:42:41] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 12:42:46] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 1 passed to hood\vk\api\methods\messages::__construct() must be of the type string, object given, called in D:\Проектs\Репозитории\vk\robots\robot.php on line 179 and defined in D:\Проектs\Репозитории\vk\api\methods\messages.php:30 Stack trace: #0 D:\Проектs\Репозитории\vk\robots\robot.php(179): hood\vk\api\methods\messages->__construct() #1 D:\Проектs\Репозитории\s.php(67): hood\vk\Robots\robot->__call() #2 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #3 D:\Проектs\Репозитории\s.php(82): hood\vk\api\longpoll->handle() #4 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:30 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 12:42:46] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:02:25] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:02:45] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:02:53] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 2 passed to hood\vk\api\methods\messages::__construct() must be of the type string, array given, called in D:\Проектs\Репозитории\vk\robots\robot.php on line 179 and defined in D:\Проектs\Репозитории\vk\api\methods\messages.php:44 Stack trace: #0 D:\Проектs\Репозитории\vk\robots\robot.php(179): hood\vk\api\methods\messages->__construct() #1 D:\Проектs\Репозитории\s.php(64): hood\vk\Robots\robot->__call() #2 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #3 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #4 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:44 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:02:53] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:03:19] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:03:25] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Typed property hood\vk\api\methods\messages::$robot must not be accessed before initialization in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:03:25] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:04:38] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:04:49] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Typed property hood\vk\api\methods\messages::$robot must not be accessed before initialization in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:83 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:04:49] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:05:14] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:05:23] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Cannot access uninitialized non-nullable property hood\vk\api\methods\messages::$attachments by reference in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:05:23] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:06:28] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 15:06:40] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Cannot access uninitialized non-nullable property hood\vk\api\methods\messages::$attachments by reference in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 D:\Проектs\Репозитории\s.php(64): hood\vk\api\methods\messages->send() #1 D:\Проектs\Репозитории\vk\api\longpoll.php(261): SHAMIL\sense\{closure}() #2 D:\Проектs\Репозитории\s.php(66): hood\vk\api\longpoll->handle() #3 {main} thrown in D:\Проектs\Репозитории\vk\api\methods\messages.php:114 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 15:06:40] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 15:07:13] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:14:13] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:14:13] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Class 'Hood\VK\robots\user' not found in D:\Проектs\Репозитории\vk\builder.php:70 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): Hood\VK\builder->user() #1 {main} thrown in D:\Проектs\Репозитории\vk\builder.php:70 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:14:13] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:44:26] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:44:26] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 2 passed to hood\vk\core::__call() must be of the type int, array given, called in D:\Проектs\Репозитории\s.php on line 69 and defined in D:\Проектs\Репозитории\vk\core.php:87 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:87 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:44:26] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:56:29] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:56:29] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Argument 1 passed to hood\vk\Robots\robot::__construct() must be of the type int, object given, called in D:\Проектs\Репозитории\vk\core.php on line 91 and defined in D:\Проектs\Репозитории\vk\robots\robot.php:87 Stack trace: #0 D:\Проектs\Репозитории\vk\core.php(91): hood\vk\Robots\robot->__construct() #1 D:\Проектs\Репозитории\s.php(69): hood\vk\core->__call() #2 {main} thrown in D:\Проектs\Репозитории\vk\robots\robot.php:87 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:56:29] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:56:39] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:56:39] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught TypeError: Return value of hood\vk\core::__call() must be an instance of hood\vk\Robots\robot, none returned in D:\Проектs\Репозитории\vk\core.php:95 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:95 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:56:39] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:57:57] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:57:57] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать адрес сервера in D:\Проектs\Репозитории\vk\robots\user.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\robots\user->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\robots\user.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:57:57] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:58:08] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:58:08] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Class 'hood\vk\Exception' not found in D:\Проектs\Репозитории\vk\core.php:93 Stack trace: #0 D:\Проектs\Репозитории\s.php(58): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:93 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:58:08] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:58:26] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 16:58:26] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Не найден робот: build in D:\Проектs\Репозитории\vk\core.php:94 Stack trace: #0 D:\Проектs\Репозитории\s.php(58): hood\vk\core->__call() #1 {main} thrown in D:\Проектs\Репозитории\vk\core.php:94 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 16:58:26] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 16:58:45] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 17:04:09] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 17:05:01] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 17:05:01] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать адрес сервера in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\robots\user->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 17:05:01] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:20:35] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:20:35] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Exception: Необходимо указать адрес сервера in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 D:\Проектs\Репозитории\s.php(69): hood\vk\robots\user->key() #1 {main} thrown in D:\Проектs\Репозитории\vk\hood\vk\robots\user.php:80 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 19:20:35] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:20:49] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:21] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:21] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined function SHAMIL\sense\core() in D:\Проектs\Репозитории\s.php:60 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:60 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 19:42:21] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:42:34] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:34] hood\vk\loggers\jasmo.ERROR: ErrorException: Uncaught Error: Call to undefined function hood\vk\core() in D:\Проектs\Репозитории\s.php:61 Stack trace: #0 {main} thrown in D:\Проектs\Репозитории\s.php:61 Stack trace: #0 [internal function]: Jasny\ErrorHandler->shutdownFunction() #1 {main} [] []
|
||||
[2020-10-08 19:42:34] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
||||
[2020-10-08 19:42:42] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
||||
[2020-10-08 19:42:42] hood\vk\loggers\jasmo.INFO: Завершение работы [] []
|
1
mirzaev/vk/logs/2020.10.09-INFO.log
Normal file
1
mirzaev/vk/logs/2020.10.09-INFO.log
Normal file
@@ -0,0 +1 @@
|
||||
[2020-10-09 08:53:00] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
1
mirzaev/vk/logs/2020.10.09.log
Normal file
1
mirzaev/vk/logs/2020.10.09.log
Normal file
@@ -0,0 +1 @@
|
||||
[2020-10-09 08:53:00] hood\vk\loggers\jasmo.INFO: Начало работы [] []
|
@@ -5,19 +5,20 @@ declare(strict_types=1);
|
||||
namespace mirzaev\vk\api;
|
||||
|
||||
use Exception;
|
||||
|
||||
use mirzaev\vk\core,
|
||||
mirzaev\vk\robots\robot;
|
||||
|
||||
/**
|
||||
* LongPoll
|
||||
*
|
||||
* @property string $key Ключ к серверу
|
||||
* @property string $server Сервер
|
||||
* @property string $ts Идентификатор последнего события
|
||||
* $key Ключ к серверу
|
||||
* $server Сервер
|
||||
* $ts Идентификатор последнего события
|
||||
*
|
||||
* @method public function __construct(object $robot) Инициализация
|
||||
* @method public function get(int $wait = 25) Получить события
|
||||
* @method public function handle(callable $function, int $wait = 25) Обработать события
|
||||
* public function __construct(object $robot) Инициализация
|
||||
* public function get(int $wait = 25) Получить события
|
||||
* public function handle(callable $function, int $wait = 25) Обработать события
|
||||
*
|
||||
* @see https://vk.com/dev/bots_longpoll
|
||||
* @see https://vk.com/dev/groups.getLongPollServer
|
||||
@@ -34,8 +35,6 @@ final class longpoll
|
||||
* Ключ к серверу
|
||||
*
|
||||
* @see $this->get()
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private string $key;
|
||||
|
||||
@@ -43,8 +42,6 @@ final class longpoll
|
||||
* Сервер (URL)
|
||||
*
|
||||
* @see $this->get()
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private string $server;
|
||||
|
||||
@@ -54,31 +51,48 @@ final class longpoll
|
||||
* От него отсчитываются новые, необработанные события
|
||||
*
|
||||
* @see $this->get()
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private string $ts;
|
||||
|
||||
/**
|
||||
* Инициализация
|
||||
*
|
||||
* @param robot $robot Робот
|
||||
* $robot Робот
|
||||
*/
|
||||
public function __construct(private robot $robot)
|
||||
{
|
||||
// Инициализация
|
||||
if (empty($robot->id)) throw new Exception('Необходимо указать идентификатор ВКонтакте');
|
||||
if (empty($robot->key)) throw new Exception('Необходимо указать ключ для доступа к LongPoll');
|
||||
if (empty($robot->api['v'])) throw new Exception('Необходимо указать версию используемого API ВКонтакте');
|
||||
if (empty($robot->api) || empty($robot->api['v'])) {
|
||||
// Настройки API не инициализированы или не соблюдены условия
|
||||
|
||||
// Безопасная инициализация
|
||||
$robot->api->init();
|
||||
}
|
||||
|
||||
// Остановка процессов-дубликатов
|
||||
if (!file_exists(core::init()->path_temp)) {
|
||||
// Если не существует каталога temp, то создать
|
||||
mkdir(core::init()->path_temp, 0775, true);
|
||||
}
|
||||
if (file_exists($lock = core::init()->path_temp . '/' . $this->robot->id . '_' . (int) $this->robot->session . '.longpoll')) {
|
||||
// Если существует файл-блокировщик, то удалить его
|
||||
unlink($lock);
|
||||
try {
|
||||
// Поиск директории для временных файлов
|
||||
if (!file_exists(core::init()->path_temp)) {
|
||||
// Не удалось найти директорию для временных файлов
|
||||
|
||||
if (!mkdir(core::init()->path_temp, 0775, true)) {
|
||||
// Не удалось создать директорию для временных файлов
|
||||
|
||||
throw new Exception('Не удалось создать директорию для временных файлов', 500);
|
||||
}
|
||||
}
|
||||
|
||||
// Поиск файла-блокировщика
|
||||
if (file_exists($lock = core::init()->path_temp . '/' . $this->robot->id . '_' . (int) $this->robot->session . '.longpoll')) {
|
||||
// Удалось найти файл-блокировщик
|
||||
|
||||
// Удаление файла
|
||||
unlink($lock);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
throw new Exception('Не удалось обработать процессы-дубликаты', 500, $e->getPrevious());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,27 +101,24 @@ final class longpoll
|
||||
*
|
||||
* Полная настройка и активация LongPoll
|
||||
*
|
||||
* @param bool $status = true Активация или деактивация
|
||||
* @param string ...$params Изменяемые параметры
|
||||
*
|
||||
* @return array
|
||||
* $status = true Активация или деактивация
|
||||
* ...$params Изменяемые параметры
|
||||
*/
|
||||
public function post(bool $status = true, string ...$params): array
|
||||
{
|
||||
// Реиницилазиция
|
||||
$this->robot->api->reinit();
|
||||
|
||||
// Инициализация настроек
|
||||
$this->robot->api['group_id'] = $this->robot->id;
|
||||
$this->robot->api['access_token'] = $this->robot->key;
|
||||
$this->robot->api['v'] = $this->robot->version;
|
||||
$this->robot->api['api_version'] = $this->robot->version;
|
||||
$settings = [
|
||||
'group_id' => $this->robot->id,
|
||||
'access_token' => $this->robot->key,
|
||||
'v' => $this->robot->version,
|
||||
'api_version' => $this->robot->version
|
||||
];
|
||||
|
||||
if ($status === true && !array_key_exists('enabled', $this->robot->api['settings'])) {
|
||||
if ($status === true && !array_key_exists('enabled', $settings)) {
|
||||
// Если запущена активация и не был передан параметр статуса LongPoll
|
||||
|
||||
// Установка параметра активации LongPoll
|
||||
$this->robot->api['enabled'] = 1;
|
||||
$settings['enabled'] = 1;
|
||||
}
|
||||
|
||||
// Установка переданных параметров
|
||||
@@ -124,57 +135,57 @@ final class longpoll
|
||||
// Если параметр не указывает на установку всех значений
|
||||
|
||||
// Установка значения
|
||||
$this->robot->api[$param] = $status;
|
||||
$settings[$param] = $status;
|
||||
} else {
|
||||
// Иначе установить все значения
|
||||
|
||||
// Если передан параметр: установка ВСЕХ значений
|
||||
$this->robot->api['message_new'] = $status;
|
||||
$this->robot->api['message_reply'] = $status;
|
||||
$this->robot->api['message_allow'] = $status;
|
||||
$this->robot->api['message_deny'] = $status;
|
||||
$this->robot->api['message_edit'] = $status;
|
||||
$this->robot->api['message_typing_state'] = $status;
|
||||
$this->robot->api['photo_new'] = $status;
|
||||
$this->robot->api['audio_new'] = $status;
|
||||
$this->robot->api['video_new'] = $status;
|
||||
$this->robot->api['wall_reply_new'] = $status;
|
||||
$this->robot->api['wall_reply_edit'] = $status;
|
||||
$this->robot->api['wall_reply_delete'] = $status;
|
||||
$this->robot->api['wall_reply_restore'] = $status;
|
||||
$this->robot->api['wall_post_new'] = $status;
|
||||
$this->robot->api['wall_repost'] = $status;
|
||||
$this->robot->api['board_post_new'] = $status;
|
||||
$this->robot->api['board_post_edit'] = $status;
|
||||
$this->robot->api['board_post_restore'] = $status;
|
||||
$this->robot->api['board_post_delete'] = $status;
|
||||
$this->robot->api['photo_comment_new'] = $status;
|
||||
$this->robot->api['photo_comment_edit'] = $status;
|
||||
$this->robot->api['photo_comment_delete'] = $status;
|
||||
$this->robot->api['photo_comment_restore'] = $status;
|
||||
$this->robot->api['video_comment_new'] = $status;
|
||||
$this->robot->api['video_comment_edit'] = $status;
|
||||
$this->robot->api['video_comment_delete'] = $status;
|
||||
$this->robot->api['video_comment_restore'] = $status;
|
||||
$this->robot->api['market_comment_new'] = $status;
|
||||
$this->robot->api['market_comment_edit'] = $status;
|
||||
$this->robot->api['market_comment_delete'] = $status;
|
||||
$this->robot->api['market_comment_restore'] = $status;
|
||||
$this->robot->api['poll_vote_new'] = $status;
|
||||
$this->robot->api['group_join'] = $status;
|
||||
$this->robot->api['group_leave'] = $status;
|
||||
$this->robot->api['group_change_settings'] = $status;
|
||||
$this->robot->api['group_change_photo'] = $status;
|
||||
$this->robot->api['group_officers_edit'] = $status;
|
||||
$this->robot->api['user_block'] = $status;
|
||||
$this->robot->api['user_unblock'] = $status;
|
||||
$this->robot->api['like_add'] = $status;
|
||||
$this->robot->api['like_remove'] = $status;
|
||||
$this->robot->api['message_event'] = $status;
|
||||
$settings['message_new'] = $status;
|
||||
$settings['message_reply'] = $status;
|
||||
$settings['message_allow'] = $status;
|
||||
$settings['message_deny'] = $status;
|
||||
$settings['message_edit'] = $status;
|
||||
$settings['message_typing_state'] = $status;
|
||||
$settings['photo_new'] = $status;
|
||||
$settings['audio_new'] = $status;
|
||||
$settings['video_new'] = $status;
|
||||
$settings['wall_reply_new'] = $status;
|
||||
$settings['wall_reply_edit'] = $status;
|
||||
$settings['wall_reply_delete'] = $status;
|
||||
$settings['wall_reply_restore'] = $status;
|
||||
$settings['wall_post_new'] = $status;
|
||||
$settings['wall_repost'] = $status;
|
||||
$settings['board_post_new'] = $status;
|
||||
$settings['board_post_edit'] = $status;
|
||||
$settings['board_post_restore'] = $status;
|
||||
$settings['board_post_delete'] = $status;
|
||||
$settings['photo_comment_new'] = $status;
|
||||
$settings['photo_comment_edit'] = $status;
|
||||
$settings['photo_comment_delete'] = $status;
|
||||
$settings['photo_comment_restore'] = $status;
|
||||
$settings['video_comment_new'] = $status;
|
||||
$settings['video_comment_edit'] = $status;
|
||||
$settings['video_comment_delete'] = $status;
|
||||
$settings['video_comment_restore'] = $status;
|
||||
$settings['market_comment_new'] = $status;
|
||||
$settings['market_comment_edit'] = $status;
|
||||
$settings['market_comment_delete'] = $status;
|
||||
$settings['market_comment_restore'] = $status;
|
||||
$settings['poll_vote_new'] = $status;
|
||||
$settings['group_join'] = $status;
|
||||
$settings['group_leave'] = $status;
|
||||
$settings['group_change_settings'] = $status;
|
||||
$settings['group_change_photo'] = $status;
|
||||
$settings['group_officers_edit'] = $status;
|
||||
$settings['user_block'] = $status;
|
||||
$settings['user_unblock'] = $status;
|
||||
$settings['like_add'] = $status;
|
||||
$settings['like_remove'] = $status;
|
||||
$settings['message_event'] = $status;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->robot->browser->request(method: 'POST', uri: 'groups.setLongPollSettings', options: $this->robot->api['settings']);
|
||||
return $this->robot->browser->request(method: 'POST', uri: 'groups.setLongPollSettings', options: $settings);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -189,23 +200,24 @@ final class longpoll
|
||||
public function get(int $wait = 25): array
|
||||
{
|
||||
if (empty($this->key) || empty($this->server) || empty($this->ts)) {
|
||||
// Если не инициализирован LongPoll-сервер
|
||||
|
||||
// Реиницилазиция
|
||||
$this->robot->api->reinit();
|
||||
|
||||
// Инициализация настроек
|
||||
$this->robot->api['group_id'] = $this->robot->id;
|
||||
// LongPoll-сервер не инициализирован
|
||||
|
||||
// Запрос на получение доступа и данных LongPoll-сервера
|
||||
$response = json_decode($this->robot->browser->request(method: 'POST', uri: 'groups.getLongPollServer', options: [
|
||||
'form_params' => $this->robot->api['settings']
|
||||
])->getBody()->getContents());
|
||||
$response = json_decode(
|
||||
$this->robot->browser->request(
|
||||
method: 'POST',
|
||||
uri: 'groups.getLongPollServer',
|
||||
options: [
|
||||
'form_params' => $this->robot->api['settings']
|
||||
]
|
||||
)->getBody()->getContents()
|
||||
);
|
||||
|
||||
if (isset($response->error)) {
|
||||
// Что-то сделать
|
||||
|
||||
var_export($response->error); die;
|
||||
var_export($response->error);
|
||||
die;
|
||||
}
|
||||
|
||||
// Инициализация
|
||||
@@ -230,10 +242,8 @@ final class longpoll
|
||||
*
|
||||
* Получает и обрабатывает события
|
||||
*
|
||||
* @param callable $function Обработка
|
||||
* @param int $wait Время ожидания новых событий (в секундах)
|
||||
*
|
||||
* @return array
|
||||
* $function Обработка
|
||||
* $wait Время ожидания новых событий (в секундах)
|
||||
*/
|
||||
public function handle(callable $function, int $wait = 25): array
|
||||
{
|
||||
|
@@ -45,13 +45,13 @@ final class messages extends method
|
||||
* Конструктор
|
||||
*
|
||||
* @param robot $robot Робот
|
||||
* @param int|string|array|null $destination Получатель
|
||||
* @param string|null $text Текст
|
||||
* @param int|string|array $destination = null
|
||||
*/
|
||||
public function __construct(
|
||||
protected robot $robot,
|
||||
protected string|null $text = null,
|
||||
int|string|array $destination = null
|
||||
int|string|array|null $destination = null,
|
||||
protected string|null $text = null
|
||||
) {
|
||||
if (isset($this->text, $destination)) {
|
||||
// Быстрая отправка
|
||||
@@ -106,15 +106,15 @@ final class messages extends method
|
||||
/**
|
||||
* Отправить сообщение
|
||||
*
|
||||
* @param int|string|array $destination Получатель
|
||||
*
|
||||
* @see https://vk.com/dev/messages.send
|
||||
*
|
||||
* @return array Ответ сервера
|
||||
* @param int|string|array|null $destination Получатель
|
||||
*
|
||||
* @return int|array Идентификатор успешно отправленного сообщения или ответ сервера (подразумевается ошибка)
|
||||
*
|
||||
* @todo Написать обработчик ошибок возвращаемых ВКонтакте
|
||||
*/
|
||||
public function send(int|string|array $destination): array
|
||||
public function send(int|string|array|null $destination): int|array
|
||||
{
|
||||
// Идентификатор
|
||||
$random_id = time();
|
||||
@@ -128,29 +128,32 @@ final class messages extends method
|
||||
$this->robot->api->reinit();
|
||||
|
||||
// Цель отправки
|
||||
$this->robot->api->chooseDestination($destination);
|
||||
$this->robot->api->destination($destination);
|
||||
|
||||
// Идентификатор сообщения
|
||||
// Инициализация идентификатора (защита от повторных отправок) в настройках API
|
||||
$this->robot->api['random_id'] = $random_id;
|
||||
|
||||
// Текст
|
||||
// Инициализация текста в настройках API
|
||||
$this->robot->api['message'] = $this->text;
|
||||
|
||||
// Пересылаемые сообщения
|
||||
if (!empty($this->forwardMessages)) {
|
||||
|
||||
// Инициализация пересылаемых сообщений в настройках API
|
||||
$this->robot->api['forward_messages'] = implode(',', $this->forwardMessages);
|
||||
}
|
||||
|
||||
// Ответные сообщения
|
||||
if (isset($this->ReplyMessage)) {
|
||||
|
||||
// Инициализация идентификатора сообщения на которое обрабатывается ответ в настройках API
|
||||
$this->robot->api['reply_to'] = $this->ReplyMessage;
|
||||
}
|
||||
|
||||
// Вложения
|
||||
if ( isset($this->data) && $this->__get('data') !== []) { // !empty($this->data->data) почемуто не работает
|
||||
if (isset($this->data) && $this->__get('data') !== []) { // !empty($this->data->data) почемуто не работает
|
||||
|
||||
// Инициализация вложений в настройках API
|
||||
$this->robot->api['attachment'] = implode(',', $this->__get('data'));
|
||||
}
|
||||
|
||||
|
@@ -4,13 +4,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace mirzaev\vk\api\methods;
|
||||
|
||||
use Exception;
|
||||
|
||||
use mirzaev\vk\robots\robot,
|
||||
mirzaev\vk\robots\group;
|
||||
|
||||
use mirzaev\accounts\vk as account;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Фотографии (изображения)
|
||||
*
|
||||
@@ -104,15 +104,41 @@ final class photos extends method
|
||||
throw new Exception('Аккаунт не инициализирован');
|
||||
}
|
||||
|
||||
/**
|
||||
* Загрузить
|
||||
*
|
||||
* @param string $images
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @todo Вынести этот мусор за Костей
|
||||
*/
|
||||
// public static function upload(string ...$images): void
|
||||
// {
|
||||
// if (count($images) > 5) {
|
||||
// throw new Exception('Запрещено отправлять более 5 фотографий');
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* загрузить
|
||||
*
|
||||
* @todo Вынести этот мусор за Костей
|
||||
*/
|
||||
public static function uploadMessage(robot $robot, string $upload_url, string ...$images)
|
||||
{
|
||||
return $robot->browser->api($upload_url, ...$images);
|
||||
}
|
||||
|
||||
/**
|
||||
* Получить сервер для загрузки изображений
|
||||
*
|
||||
* @see https://vk.com/dev/photos.getUploadServer
|
||||
*
|
||||
* @param robot $robot Робот
|
||||
* @param int|null $album_id Альбом
|
||||
* @param int|group|null $group_id Группа
|
||||
*
|
||||
* @see https://vk.com/dev/photos.getUploadServer
|
||||
*
|
||||
* @return array|null Ответ сервера
|
||||
*/
|
||||
public static function getUploadServer(robot $robot, int|null $album_id = null, int|group|null $group_id = null): ?array
|
||||
@@ -149,6 +175,8 @@ final class photos extends method
|
||||
/**
|
||||
* Получить альбомы
|
||||
*
|
||||
* @see https://vk.com/dev/photos.getUploadServer
|
||||
*
|
||||
* @param robot $robot Робот
|
||||
* @param array $album_ids = null Идентификаторы альбомов
|
||||
* @param int $offset = null Смещение для выборки подмножества
|
||||
@@ -157,8 +185,6 @@ final class photos extends method
|
||||
* @param bool $need_covers = null Активация возврата поля с обложкой альбома
|
||||
* @param bool $photo_sizes = null Активация специального формата размеров фотографий
|
||||
*
|
||||
* @see https://vk.com/dev/photos.getUploadServer
|
||||
*
|
||||
* @return array Ответ сервера
|
||||
*/
|
||||
public static function getAlbums(robot $robot, array $album_ids = null, int $offset = null, int $count = null, bool $need_system = null, bool $need_covers = null, bool $photo_sizes = null): array
|
||||
@@ -291,6 +317,5 @@ final class photos extends method
|
||||
$request;
|
||||
// Ссылка на фото
|
||||
return 'photo' . $request->response[0]->owner_id . '_' . $request->response[0]->id;
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -4,12 +4,12 @@ declare(strict_types=1);
|
||||
|
||||
namespace mirzaev\vk\api;
|
||||
|
||||
use mirzaev\vk\robots\robot;
|
||||
|
||||
use Throwable;
|
||||
use Exception;
|
||||
use ArrayAccess;
|
||||
|
||||
use mirzaev\vk\robots\robot;
|
||||
|
||||
/**
|
||||
* Настройки соединения с API
|
||||
*
|
||||
@@ -79,19 +79,52 @@ class settings implements ArrayAccess
|
||||
/**
|
||||
* Реинициализация
|
||||
*
|
||||
* @var float $version Версия API (переопределять не рекомендуется)
|
||||
* @param bool $purge Полная очистка
|
||||
*/
|
||||
public function reinit(string $version = null): self
|
||||
public function reinit(bool $purge = false): self
|
||||
{
|
||||
// Буфер
|
||||
$version = $version ?? $this->settings['v'] ?? null;
|
||||
|
||||
// Деинициализация
|
||||
$this->settings = [];
|
||||
|
||||
// Инициализация
|
||||
// Реинициализация
|
||||
try {
|
||||
$this->_init($version);
|
||||
if ($purge) {
|
||||
// Полная очистка
|
||||
|
||||
// Очистка
|
||||
$this->settings = [];
|
||||
} else {
|
||||
// Инициализация буфера
|
||||
$buffer = [];
|
||||
|
||||
if (isset($this->settings['v'])) {
|
||||
// Найдена версия API (подразумевается использование робота-группы)
|
||||
|
||||
// Запись в буфер
|
||||
$buffer['v'] = $this->settings['v'];
|
||||
}
|
||||
|
||||
if (isset($this->settings['access_token'])) {
|
||||
// Найден ключ группы (подразумевается использование робота-группы)
|
||||
|
||||
// Запись в буфер
|
||||
$buffer['access_token'] = $this->settings['access_token'];
|
||||
}
|
||||
|
||||
if (isset($this->settings['group_id'])) {
|
||||
// Найден идентификатор группы (подразумевается использование робота-группы)
|
||||
|
||||
// Запись в буфер
|
||||
$buffer['group_id'] = $this->settings['group_id'];
|
||||
}
|
||||
|
||||
if (isset($this->settings['user_id'])) {
|
||||
// Найден идентификатор пользователя (подразумевается использование робота-пользователя)
|
||||
|
||||
// Запись в буфер
|
||||
$buffer['user_id'] = $this->settings['user_id'];
|
||||
}
|
||||
|
||||
// Перенос данных из буфера
|
||||
$this->settings = $buffer;
|
||||
}
|
||||
} catch (Throwable $t) {
|
||||
throw new Exception('Не удалось инициализировать API', 500, $t->getPrevious());
|
||||
}
|
||||
@@ -106,9 +139,6 @@ class settings implements ArrayAccess
|
||||
*/
|
||||
protected function _init(string $version = self::VK_API_VERSION_DEFAULT): self
|
||||
{
|
||||
// Ключ
|
||||
$this->settings['access_token'] = $this->robot->key;
|
||||
|
||||
// Версия API
|
||||
$this->settings['v'] = $version;
|
||||
|
||||
@@ -116,7 +146,7 @@ class settings implements ArrayAccess
|
||||
}
|
||||
|
||||
/**
|
||||
* Определить и записать получателя
|
||||
* Инициализация получателя
|
||||
*
|
||||
* @see mirzaev\vk\api\methods\messages Сообщения
|
||||
*/
|
||||
|
@@ -8,7 +8,7 @@ use mirzaev\vk\robots\robot;
|
||||
use mirzaev\vk\traits\singleton;
|
||||
use mirzaev\vk\loggers\jasmo;
|
||||
|
||||
use Exception;
|
||||
use exception;
|
||||
|
||||
/**
|
||||
* Ядро
|
||||
@@ -32,15 +32,11 @@ final class core
|
||||
|
||||
/**
|
||||
* Счётчик роботов
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private int $robots = 0;
|
||||
|
||||
/**
|
||||
* Реестр роботов
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private array $registry = [];
|
||||
|
||||
@@ -48,29 +44,21 @@ final class core
|
||||
* Временная зона
|
||||
*
|
||||
* Используется в логировании
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private string $timezone;
|
||||
|
||||
/**
|
||||
* Путь до корня проекта
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private string $path_root;
|
||||
|
||||
/**
|
||||
* Путь до папки журналов
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private string $path_logs;
|
||||
|
||||
/**
|
||||
* Путь до временной папки
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private string $path_temp;
|
||||
|
||||
@@ -79,8 +67,9 @@ final class core
|
||||
*
|
||||
* @param string $file Файл для журналирования
|
||||
*
|
||||
* @return self
|
||||
*
|
||||
* @todo Добавить установку иного журналиста по спецификации PSR-3
|
||||
* @todo Более гибкое журналирование
|
||||
*/
|
||||
public function journal(string $file = null): self
|
||||
{
|
||||
@@ -97,6 +86,8 @@ final class core
|
||||
* @param robot $robot
|
||||
*
|
||||
* @see mirzaev\vk\traits\registry Модификация метода
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function write(int $id, robot $robot): void
|
||||
{
|
||||
@@ -104,7 +95,7 @@ final class core
|
||||
// Инициализация уникального идентификатора сессии
|
||||
|
||||
$session = count($this->read($id));
|
||||
} catch (Exception $e) {
|
||||
} catch (exception $e) {
|
||||
if ($e->getCode() === 404) {
|
||||
// Робота или сессии не существует
|
||||
|
||||
@@ -148,13 +139,13 @@ final class core
|
||||
return $this->registry[$id][$session];
|
||||
}
|
||||
|
||||
throw new Exception("Сессия $session робота с идентификатором $id не найдена", 404);
|
||||
throw new exception("Сессия $session робота с идентификатором $id не найдена", 404);
|
||||
}
|
||||
|
||||
return $this->registry[$id];
|
||||
} else {
|
||||
|
||||
throw new Exception("Робот с идентификатором $id не найден", 404);
|
||||
throw new exception("Робот с идентификатором $id не найден", 404);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,6 +158,8 @@ final class core
|
||||
* @param int|null $id Идентификатор
|
||||
* @param int|null $session Сессия
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @see mirzaev\vk\traits\registry Модификация метода
|
||||
*/
|
||||
public function delete(int|null $id = null, int|null $session = null): void
|
||||
@@ -192,7 +185,7 @@ final class core
|
||||
return;
|
||||
}
|
||||
|
||||
throw new Exception("Сессия $session робота с идентификатором $id не найдена", 404);
|
||||
throw new exception("Сессия $session робота с идентификатором $id не найдена", 404);
|
||||
}
|
||||
|
||||
// Вычитание из счётчика количества сессий робота
|
||||
@@ -204,7 +197,7 @@ final class core
|
||||
return;
|
||||
}
|
||||
|
||||
throw new Exception("Робот с идентификатором $id не найден", 404);
|
||||
throw new exception("Робот с идентификатором $id не найден", 404);
|
||||
}
|
||||
|
||||
// Полная очистка
|
||||
@@ -214,25 +207,32 @@ final class core
|
||||
/**
|
||||
* Записать свойство
|
||||
*
|
||||
* @param mixed $name Название
|
||||
* @param string $name Название
|
||||
* @param mixed $value Значение
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __set(mixed $name, mixed $value): void
|
||||
public function __set(string $name, mixed $value): void
|
||||
{
|
||||
match ($name) {
|
||||
'timezone' => !isset($this->timezone) ? $this->timezone = $value : throw new Exception('Запрещено переопределять часовой пояс', 500),
|
||||
'path_root' => !isset($this->path_root) ? $this->path_root = $value : throw new Exception('Запрещено переопределять корневой каталог', 500),
|
||||
'path_logs' => !isset($this->path_logs) ? $this->path_logs = $value : throw new Exception('Запрещено переопределять каталог журналов', 500),
|
||||
'path_temp' => !isset($this->path_temp) ? $this->path_temp = $value : throw new Exception('Запрещено переопределять каталог временных файлов', 500)
|
||||
'timezone' => !isset($this->timezone) ? $this->timezone = $value : throw new exception('Запрещено переопределять часовой пояс', 500),
|
||||
'path_root' => !isset($this->path_root) ? $this->path_root = $value : throw new exception('Запрещено переопределять корневой каталог', 500),
|
||||
'path_logs' => !isset($this->path_logs) ? $this->path_logs = $value : throw new exception('Запрещено переопределять каталог журналов', 500),
|
||||
'path_temp' => !isset($this->path_temp) ? $this->path_temp = $value : throw new exception('Запрещено переопределять каталог временных файлов', 500),
|
||||
default => throw new exception("Свойство $name не обнаружено", 404)
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Прочитать свойство
|
||||
*
|
||||
* Записывает значение по умолчанию, если свойство не инициализировано
|
||||
*
|
||||
* @param mixed $name Название
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get(mixed $name): mixed
|
||||
public function __get(string $name): mixed
|
||||
{
|
||||
return match ($name) {
|
||||
'robots' => $this->robots,
|
||||
@@ -240,7 +240,7 @@ final class core
|
||||
'path_root' => $this->path_root ?? $this->path_root = dirname(__DIR__),
|
||||
'path_logs' => $this->path_logs ?? $this->path_logs = $this->__get('path_root') . '/logs',
|
||||
'path_temp' => $this->path_temp ?? $this->path_temp = $this->__get('path_root') . '/temp',
|
||||
default => null
|
||||
default => throw new exception("Свойство \"\$$name\" не обнаружено", 404)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -252,6 +252,8 @@ final class core
|
||||
*
|
||||
* @param string $method Метод
|
||||
* @param array $params Параметры
|
||||
*
|
||||
* @return robot
|
||||
*/
|
||||
public function __call(string $method, array $params): robot
|
||||
{
|
||||
@@ -259,7 +261,7 @@ final class core
|
||||
// Если найден класс реализующий запрошенного робота
|
||||
return new $robot(...$params);
|
||||
} else {
|
||||
throw new Exception("Робот $method не найден", 404);
|
||||
throw new exception("Робот $method не найден", 404);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -14,8 +14,6 @@ abstract class logger
|
||||
{
|
||||
/**
|
||||
* Экземпляр класса журналиста
|
||||
*
|
||||
* @var logger
|
||||
*/
|
||||
public static $logger;
|
||||
|
||||
|
@@ -4,17 +4,19 @@ declare(strict_types=1);
|
||||
|
||||
namespace mirzaev\vk\robots;
|
||||
|
||||
use mirzaev\vk\robots\robot;
|
||||
use mirzaev\vk\api\longpoll;
|
||||
|
||||
use Throwable;
|
||||
use Exception;
|
||||
|
||||
use mirzaev\vk\robots\robot,
|
||||
mirzaev\vk\api\settings as api,
|
||||
mirzaev\vk\api\longpoll;
|
||||
|
||||
/**
|
||||
* Робот-группа
|
||||
*
|
||||
* @property longpoll $longpoll LongPoll-сессия
|
||||
*
|
||||
* @method public function __construct(int|null $id, string|null $key) Конструктор
|
||||
* @method public function __set($name, $value) Запись свойства
|
||||
* @method public function __get($name) Чтение свойства
|
||||
* @method public function __isset($name) Проверка на инициализированность свойства
|
||||
@@ -29,6 +31,22 @@ final class group extends robot
|
||||
*/
|
||||
protected longpoll $longpoll;
|
||||
|
||||
/**
|
||||
* Конструктор
|
||||
*
|
||||
* @param int|null $id Идентификатор
|
||||
* @param string|null $key Ключ
|
||||
*/
|
||||
public function __construct(
|
||||
protected int|null $id = null,
|
||||
protected string|null $key = null
|
||||
) {
|
||||
parent::__construct($id, $key);
|
||||
|
||||
// Инициализация данных API
|
||||
$this->api['group_id'] = $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Запись свойства
|
||||
*
|
||||
|
@@ -6,16 +6,15 @@ namespace mirzaev\vk\robots;
|
||||
|
||||
use Exception;
|
||||
|
||||
use GuzzleHttp\Client as browser;
|
||||
|
||||
use mirzaev\vk\core;
|
||||
use mirzaev\vk\proxies\proxy;
|
||||
use mirzaev\vk\captcha\captcha;
|
||||
use mirzaev\vk\api\settings as api;
|
||||
use mirzaev\vk\api\methods\method;
|
||||
use mirzaev\vk\core,
|
||||
mirzaev\vk\proxies\proxy,
|
||||
mirzaev\vk\captcha\captcha,
|
||||
mirzaev\vk\api\settings as api,
|
||||
mirzaev\vk\api\methods\method;
|
||||
|
||||
use mirzaev\accounts\vk as account;
|
||||
|
||||
use GuzzleHttp\Client as browser;
|
||||
|
||||
/**
|
||||
* Робот
|
||||
@@ -26,8 +25,6 @@ use mirzaev\accounts\vk as account;
|
||||
* @var api $api API ВКонтакте
|
||||
* @var account $account Аккаунт
|
||||
* @var browser $browser Браузер
|
||||
* @var proxy $proxy Прокси
|
||||
* @var captcha $captcha Обработчик капчи
|
||||
*
|
||||
* @var int $messages_mode Режим отправки сообщений
|
||||
*
|
||||
@@ -47,27 +44,17 @@ use mirzaev\accounts\vk as account;
|
||||
abstract class robot
|
||||
{
|
||||
/**
|
||||
* @var int Сессия
|
||||
* Сессия
|
||||
*/
|
||||
protected int $session;
|
||||
|
||||
/**
|
||||
* @var string Аккаунт
|
||||
* Аккаунт
|
||||
*/
|
||||
private account $account;
|
||||
|
||||
/**
|
||||
* @var proxy Прокси
|
||||
*/
|
||||
protected proxy $proxy;
|
||||
|
||||
/**
|
||||
* @var captcha Обработчик капчи
|
||||
*/
|
||||
protected captcha $captcha;
|
||||
|
||||
/**
|
||||
* @var int Режим отправки сообщений
|
||||
* $messages_mode Режим отправки сообщений
|
||||
*/
|
||||
protected int $messages_mode = 1;
|
||||
|
||||
@@ -97,20 +84,44 @@ abstract class robot
|
||||
|
||||
// Идентификация сессии робота
|
||||
$this->session = count($core->read($this->id));
|
||||
|
||||
// Инициализация настроек API
|
||||
$this->api();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Инициализация ключа
|
||||
*
|
||||
* @param string $key Ключ
|
||||
* @param string|null $key Ключ
|
||||
*
|
||||
* @return self
|
||||
* @return string|self Ключ при чтении или инстанцию робота при записи
|
||||
*/
|
||||
public function key(string $key): self
|
||||
public function key(string|null $key = null): string|self
|
||||
{
|
||||
$this->__set('key', $key);
|
||||
if (isset($key)) {
|
||||
// Ключ передан (подразумевается как запись)
|
||||
|
||||
return $this;
|
||||
if (isset($this->key)) {
|
||||
// Ключ уже инициализирован
|
||||
|
||||
throw new Exception('Запрещено перезаписывать ключ', 500);
|
||||
} else {
|
||||
// Ключ ещё не инициализирован
|
||||
|
||||
// Запись ключа
|
||||
$this->key = $key;
|
||||
|
||||
// Инициализация данных в настройках API
|
||||
$this->api()['access_token'] = $key;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
// Ключ не передан (подразумевается как чтение)
|
||||
|
||||
return $this->key;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,41 +129,47 @@ abstract class robot
|
||||
*
|
||||
* @param account $account Аккаунт
|
||||
*
|
||||
* @return self
|
||||
* @return account|self Аккаунт при чтении или инстанцию робота при записи
|
||||
*/
|
||||
public function account(account $account): self
|
||||
public function account(account|null $account = null): account|self
|
||||
{
|
||||
$this->__set('account', $account);
|
||||
if (isset($account)) {
|
||||
// Аккаунт передан (подразумевается как запись)
|
||||
|
||||
return $this;
|
||||
if (isset($this->account)) {
|
||||
// Аккаунт уже инициализирован
|
||||
|
||||
throw new Exception('Запрещено перезаписывать аккаунт', 500);
|
||||
} else {
|
||||
// Аккаунт ещё не инициализирован
|
||||
|
||||
// Запись аккаунта
|
||||
$this->account = $account;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
// Аккаунт не передан (подразумевается как чтение)
|
||||
|
||||
return $this->account;
|
||||
}
|
||||
|
||||
/**
|
||||
* Инициализация прокси
|
||||
* Инициализация API
|
||||
*
|
||||
* @param proxy $proxy Прокси
|
||||
*
|
||||
* @return self
|
||||
* @return api Инстанция настроек API
|
||||
*/
|
||||
public function proxy(proxy $proxy): self
|
||||
public function api(): api
|
||||
{
|
||||
$this->__set('proxy', $proxy);
|
||||
if (!isset($this->api)) {
|
||||
// Настройки API ещё не инициализированы
|
||||
|
||||
return $this;
|
||||
}
|
||||
// Запись инстанции настроек API
|
||||
$this->api = new api($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Инициализация обработчика капчи
|
||||
*
|
||||
* @param captcha $captcha Обработчик капчи
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function captcha(captcha $captcha): self
|
||||
{
|
||||
$this->__set('captcha', $captcha);
|
||||
|
||||
return $this;
|
||||
return $this->api;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -168,12 +185,10 @@ abstract class robot
|
||||
match ($name) {
|
||||
'id' => isset($this->id) ? throw new Exception('Запрещено перезаписывать идентификатор', 500) : $this->id = (int) $value,
|
||||
'session' => isset($this->session) ? throw new Exception('Запрещено перезаписывать сессию', 500) : $this->session = (int) $value,
|
||||
'key' => isset($this->key) ? throw new Exception('Запрещено перезаписывать ключ', 500) : $this->key = (string) $value,
|
||||
'api' => isset($this->api) ? throw new Exception('Запрещено перезаписывать API', 500) : $this->api = $value,
|
||||
'account' => isset($this->account) ? throw new Exception('Запрещено перезаписывать аккаунт', 500) : $this->account = $value,
|
||||
'key' => $this->key((string) $value),
|
||||
'account' => $this->account($value),
|
||||
'api' => $this->api(),
|
||||
'browser' => isset($this->browser) ? throw new Exception('Запрещено перезаписывать браузер', 500) : $this->browser = $value,
|
||||
'proxy' => $this->proxy = $value,
|
||||
'captcha' => $this->captcha = $value,
|
||||
'messages_new' => $this->messages_new = (int) $value,
|
||||
default => throw new Exception("Свойство $name не найдено", 404)
|
||||
};
|
||||
@@ -191,15 +206,13 @@ abstract class robot
|
||||
return match ($name) {
|
||||
'id' => $this->id ?? throw new Exception('Идентификатор не инициализирован', 500),
|
||||
'session' => $this->session ?? throw new Exception('Сессия не инициализирована', 500),
|
||||
'key' => $this->key ?? throw new Exception('Ключ не инициализирован', 500),
|
||||
'api' => $this->api ?? $this->api = new api($this),
|
||||
'account' => $this->account ?? throw new Exception('Аккаунт не инициализирован', 500),
|
||||
'key' => $this->key(),
|
||||
'account' => $this->account(),
|
||||
'api' => $this->api(),
|
||||
'browser' => $this->browser ?? $this->browser = new browser([
|
||||
'base_uri' => 'https://api.vk.com/method/',
|
||||
'cookies' => true
|
||||
]),
|
||||
'proxy' => $this->proxy,
|
||||
'captcha' => $this->captcha,
|
||||
'messages_new' => $this->messages_new,
|
||||
default => throw new Exception("Свойство $name не найдено", 404)
|
||||
};
|
||||
@@ -221,8 +234,6 @@ abstract class robot
|
||||
'account' => isset($this->account),
|
||||
'api' => isset($this->api),
|
||||
'browser' => isset($this->browser),
|
||||
'proxy' => isset($this->proxy),
|
||||
'captcha' => isset($this->captcha),
|
||||
'messages_new' => isset($this->messages_new),
|
||||
default => throw new Exception("Свойство $name не найдено", 404)
|
||||
};
|
||||
|
@@ -16,19 +16,42 @@ use mirzaev\accounts\vk as account;
|
||||
*/
|
||||
final class user extends robot
|
||||
{
|
||||
/**
|
||||
* Конструктор
|
||||
*
|
||||
* @param int|null $id Идентификатор
|
||||
* @param string|null $key Ключ
|
||||
*/
|
||||
public function __construct(
|
||||
protected int|null $id = null,
|
||||
protected string|null $key = null
|
||||
) {
|
||||
parent::__construct($id, $key);
|
||||
|
||||
// Инициализация данных API
|
||||
$this->api['user_id'] = $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Инициализация аккаунта
|
||||
*
|
||||
* @param account $account Аккаунт
|
||||
*
|
||||
* @return self
|
||||
* @return account|self Аккаунт при чтении или инстанцию робота при записи
|
||||
*/
|
||||
public function account(account $account): self
|
||||
public function account(account|null $account = null): account|self
|
||||
{
|
||||
parent::account($account);
|
||||
if (isset($account)) {
|
||||
// Передан аккаунт
|
||||
|
||||
$this->key = $account->key;
|
||||
if (isset($account->key)) {
|
||||
// Ключ инициализирован
|
||||
|
||||
return $this;
|
||||
// Инициализация данных в настройках API
|
||||
$this->api()['access_token'] = $account->key;
|
||||
}
|
||||
}
|
||||
|
||||
return parent::account($account);
|
||||
}
|
||||
}
|
||||
|
@@ -27,8 +27,6 @@ trait singleton
|
||||
|
||||
/**
|
||||
* Инициализация
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
|
2
mirzaev/vk/temp/.gitignore
vendored
Normal file
2
mirzaev/vk/temp/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*
|
||||
!.gitignore
|
@@ -1 +0,0 @@
|
||||
9104
|
@@ -33,6 +33,22 @@ final class groupTest extends TestCase
|
||||
private static robot $robot;
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* @testdox Деинициализация аккаунта
|
||||
* @afterClass
|
||||
*/
|
||||
public static function testAccountDeinit(): void
|
||||
{
|
||||
// Инициализация аккаунта
|
||||
self::$account = new account(empty(self::$id) ? rand(0, 10) : self::$id, __DIR__ . '../../accounts');
|
||||
|
||||
// Деаутентификация
|
||||
self::$account->deauth();
|
||||
}
|
||||
|
||||
/**
|
||||
=======
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
* @testdox Инициализация аккаунта
|
||||
* @beforeClass
|
||||
*/
|
||||
@@ -70,6 +86,18 @@ final class groupTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* @testdox Деинициализация робота
|
||||
* @after
|
||||
*/
|
||||
public function testRobotGroupDeinit(): void
|
||||
{
|
||||
// Очистка реестра
|
||||
self::$core->delete();
|
||||
|
||||
// Проверка
|
||||
$this->assertEmpty(self::$core->get(self::$robot->id), 'Ошибка при деинициализации робота');
|
||||
=======
|
||||
* @testdox Деинициализация аккаунта
|
||||
* @afterClass
|
||||
*/
|
||||
@@ -80,6 +108,7 @@ final class groupTest extends TestCase
|
||||
|
||||
// Деаутентификация
|
||||
self::$account->deauth();
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -102,6 +131,8 @@ final class groupTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
* @testdox Деинициализация робота
|
||||
* @after
|
||||
*/
|
||||
@@ -115,6 +146,7 @@ final class groupTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
* @testdox Запись идентификатора
|
||||
*/
|
||||
public function testRobotGroupWriteId(): void
|
||||
@@ -226,11 +258,32 @@ final class groupTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* @testdox Запись версии API
|
||||
*/
|
||||
public function testRobotGroupWriteVersion(): void
|
||||
{
|
||||
// Проверка выброса исключения
|
||||
$this->expectExceptionMessage('Запрещено перезаписывать версию API');
|
||||
|
||||
// Запись версии
|
||||
self::$robot->version = empty(self::$robot->version) ? rand(0, 10) : self::$robot->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @testdox Чтение версии
|
||||
*/
|
||||
public function testRobotGroupReadVersion(): void
|
||||
{
|
||||
// Проверка
|
||||
$this->assertNotNull(self::$robot->version, 'Не удалось прочитать версию');
|
||||
=======
|
||||
* @testdox Чтение API
|
||||
*/
|
||||
public function testRobotGroupReadApi(): void
|
||||
{
|
||||
// Проверка
|
||||
$this->assertNotNull(self::$robot->key(self::$group_key)->api);
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
}
|
||||
}
|
||||
|
@@ -33,6 +33,22 @@ final class userTest extends TestCase
|
||||
private static robot $robot;
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* @testdox Деинициализация аккаунта
|
||||
* @afterClass
|
||||
*/
|
||||
public static function testAccountDeinit(): void
|
||||
{
|
||||
// Инициализация аккаунта
|
||||
self::$account = new account(empty(self::$id) ? rand(0, 10) : self::$id, __DIR__ . '../../accounts');
|
||||
|
||||
// Деаутентификация
|
||||
self::$account->deauth();
|
||||
}
|
||||
|
||||
/**
|
||||
=======
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
* @testdox Инициализация аккаунта
|
||||
* @beforeClass
|
||||
*/
|
||||
@@ -70,6 +86,18 @@ final class userTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* @testdox Деинициализация робота
|
||||
* @after
|
||||
*/
|
||||
public function testRobotGroupDeinit(): void
|
||||
{
|
||||
// Очистка реестра
|
||||
self::$core->delete();
|
||||
|
||||
// Проверка
|
||||
$this->assertEmpty(self::$core->get(self::$robot->id), 'Ошибка при деинициализации робота');
|
||||
=======
|
||||
* @testdox Деинициализация аккаунта
|
||||
* @afterClass
|
||||
*/
|
||||
@@ -80,6 +108,7 @@ final class userTest extends TestCase
|
||||
|
||||
// Деаутентификация
|
||||
self::$account->deauth();
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -102,6 +131,8 @@ final class userTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
* @testdox Деинициализация робота
|
||||
* @after
|
||||
*/
|
||||
@@ -115,6 +146,7 @@ final class userTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
* @testdox Запись идентификатора
|
||||
*/
|
||||
public function testRobotGroupWriteId(): void
|
||||
@@ -201,11 +233,57 @@ final class userTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* @testdox Чтение ключа
|
||||
*/
|
||||
public function testRobotGroupReadKey(): void
|
||||
{
|
||||
// Запись ключа
|
||||
self::$robot->key((string) (empty(self::$key) ? rand(0, 10) : self::$key));
|
||||
|
||||
// Проверки
|
||||
$this->assertNotNull(self::$robot->key, 'Не удалось записать ключ пользователя');
|
||||
$this->assertNotNull(self::$robot->key, 'Не удалось прочитать ключ');
|
||||
}
|
||||
|
||||
/**
|
||||
* @testdox Чтение ключа, если он не инициализирован
|
||||
*/
|
||||
public function testRobotGroupReadKeyWhenHeIsNotInit(): void
|
||||
{
|
||||
// Проверка выброса исключения
|
||||
$this->expectExceptionMessage('Ключ не инициализирован');
|
||||
|
||||
// Чтение ключа
|
||||
$key = self::$robot->key;
|
||||
}
|
||||
|
||||
/**
|
||||
* @testdox Запись версии API
|
||||
*/
|
||||
public function testRobotGroupWriteVersion(): void
|
||||
{
|
||||
// Проверка выброса исключения
|
||||
$this->expectExceptionMessage('Запрещено перезаписывать версию API');
|
||||
|
||||
// Запись версии
|
||||
self::$robot->version = empty(self::$robot->version) ? rand(0, 10) : self::$robot->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @testdox Чтение версии
|
||||
*/
|
||||
public function testRobotGroupReadVersion(): void
|
||||
{
|
||||
// Проверка
|
||||
$this->assertNotNull(self::$robot->version, 'Не удалось прочитать версию');
|
||||
=======
|
||||
* @testdox Чтение API
|
||||
*/
|
||||
public function testRobotGroupReadApi(): void
|
||||
{
|
||||
// Проверка
|
||||
$this->assertNotNull(self::$robot->key(self::$group_key)->api);
|
||||
>>>>>>> a45b5c327511a74d1fae5ab0e3a1dcc68e7dc3b4
|
||||
}
|
||||
}
|
||||
|
20
test.php
20
test.php
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
use hood\vk\core;
|
||||
use hood\vk\api\settings;
|
||||
|
||||
require './vendor/autoload.php';
|
||||
|
||||
$core = core::init();
|
||||
|
||||
$robot = $core->group(12312)->key(1);
|
||||
$robot = $core->group(12312)->key(1);
|
||||
$robot = $core->group()->key(1);
|
||||
$robot = $core->group()->key(1);
|
||||
|
||||
$settings = new settings($robot);
|
||||
|
||||
$settings['data']['test']['a'] = 2;
|
||||
$settings['data'] = 2;
|
||||
|
||||
var_export($core->read());
|
Reference in New Issue
Block a user