A
A
Arseniy2020-07-26 20:31:30
In contact with
Arseniy, 2020-07-26 20:31:30

VK bot stopped responding, what should I do?

Hello, such a situation occurred, I have a VK game bot, the day before yesterday a person played in a casino in it, that is, you can say team after team, you can say spam, after that all the buttons worked but not all commands, for example the profile, there was a line in the error errors, this line was a line in the profiles, coins. I had to remove the section with coins in the profile and everything worked, I couldn’t find the problem, it’s very strange. And last night the person also spammed a little in the casino and the same thing happened, now the balance does not work, and the teams in which it is, I just can’t find the problem, so today I decided to write here.
Please help, this is very important, I will be very grateful.
Here is a link to the bot and everything that comes with it (base, etc.) - https://yadi.sk/d/mjAaiJHzzsUpHg

Here is the error that is thrown in the console when the profile command

Handle polling update error is written: TypeError: Cannot read property 'toString' of null
at Object.sp (D:\SCORPI BOT\SCORPI BOT (2)\app.js:1227:13 )
at Array. (D:\SCORPI BOT\SCORPI BOT (2)\app.js:1643:35)
at D:\SCORPI BOT\SCORPI BOT (2)\app.js:1477:18
at D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:11524:7
at nextDispatch (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\middleware-io\lib\index.js:31:40)
at Updates.stackMiddleware (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\middleware-io\lib\index.js:37:16)
at Updates.dispatchMiddleware (D:\SCORPI BOT\SCORPI BOT (2)\ node_modules\vk-io\lib\index.js:12081:15)
at Updates.handleWebhookUpdate (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:11667:15)
at D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk- io\lib\index.js:12065:16
at Array.forEach ()
at Updates.fetchUpdates (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:12063:20)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Updates.startFetchLoop (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:11973:5)

A when we write the balance command
Handle polling update error: TypeError: Cannot read property 'toString' of null
at Object.sp (D:\SCORPI BOT\SCORPI BOT (2)\app.js:1227:13)
at Array. (D:\SCORPI BOT\SCORPI BOT (2)\app.js:1807:35)
at D:\SCORPI BOT\SCORPI BOT (2)\app.js:1477:18
at D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:11524:7
at nextDispatch (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\middleware-io\lib\index.js:31:40)
at Updates.stackMiddleware (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\middleware- io\lib\index.js:37:16)
at Updates.dispatchMiddleware (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:12081:15)
at Updates.handleWebhookUpdate ( D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:11667:15)
at D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index .js:12065:16
at Array.forEach()
at Updates.fetchUpdates (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:12063:20)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Updates.startFetchLoop (D:\SCORPI BOT\SCORPI BOT (2)\node_modules\vk-io\lib\index.js:11973:5)

please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekseyHunter, 2020-07-26
@alekseyHunter

What is not clear in the error log?
The program tries to call the toString method on an object. There is no object reference (null). Check why the object is not initialized.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question