Здарова всем , в общем у меня есть игровой бот вк, и там есть команда раздача и когда я её ввожу всем пишет то что раздача началась, и нужно сделать репост нового поста в группе но пост не появляется а в лог выдаёт такую ошибку
Handle polling update error: ReferenceError: time is not defined
at Array. (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\dodji.js:2534:83)
at C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\dodji.js:250:18
at C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:7251:15
at nextDispatch (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\middleware-io\lib\index.js:52:40)
at Updates.stackMiddleware (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\middleware-io\lib\index.js:58:16)
at Updates.dispatchMiddleware (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:7427:21)
at Updates.handleWebhookUpdate (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:7355:21)
at C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:6864:28
at Array.forEach ()
at PollingTransport.fetchUpdates (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:6862:24)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async PollingTransport.startFetchLoop (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:6794:17)
(node:43104) UnhandledPromiseRejectionWarning: APIError: Code №901 - Can't send messages for users without permission
at API.callMethod (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:828:39)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(
node:43104) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see
https://nodejs.org/api/cli.html#cli_unhandled_reje...). (rejection id: 2)
(node:43104) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:43104) UnhandledPromiseRejectionWarning: APIError: Code №901 - Can't send messages for users without permission
at API.callMethod (C:\Users\Инферно\Documents\GitHub\dodji-bot-vk\node_modules\vk-io\lib\index.js:828:39)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(
node:43104) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see
https://nodejs.org/api/cli.html#cli_unhandled_reje...). (rejection id: 3)