-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bot fails at the command of stop watch #38
Comments
Yeah I know that's broken, not sure why. |
rom wa = ["done", function ...... ] can't understand why in the stopWatch it is not already initialized |
just tell me where to look |
maybe because https://github.com/rom1504/rbot/blob/master/task/blockTask.js#L74 is never executed. Try adding some console.log there maybe. |
did so:
in console got:
it is seen that where calls the function watch(...)? |
It's after watch_result.status = done; that you should try to put a console.log("test"); to see if it goes there. |
changed:
in console:
all the same. in the console did not get any if the function call is the
|
therefore it can be argued that the function call to perhaps it is because the command this may be the cause? |
found a place which may be an error: modified the function processMessage in file achieve.js
adding the following line: in console:
it is seen that execution of the line XXX is not happening for the following reason:
it remains only to find the bug :( |
oh yes of course. so for example |
still crashes. But the
|
hmm can you print the done of |
in
what there should be? |
in
console:
|
Really ? there's your nick in done ??? |
I was talking about the done of watch. |
sorry, I took the kids to roller skate. |
Now the wife sends you to the market. She is one of those women who can not refuse :) |
I came. |
this is without the latest commit in code:
in console:
|
thank you very much. Children already overcome with requests to make them a bot:) |
now errors out when using any commands. To post here the errors? |
/home/......./rbot/task/blockTask.js:96
bot.removeListener('blockUpdate',wa[1]);
^
TypeError: Cannot read property '1' of undefined
at stopWatch (/home/......./rbot/task/blockTask.js:96:37)
at /home/......./rbot/achieve.js:53:11
at /home/......./rbot/lib/stringTo.js:39:192
at /home/......./rbot/node_modules/async/lib/async.js:232:13
at async.each (/home/......./rbot/node_modules/async/lib/async.js:107:20)
at _asyncMap (/home/......./rbot/node_modules/async/lib/async.js:226:9)
at Object.map (/home/......./rbot/node_modules/async/lib/async.js:204:23)
at Object.stringTo (/home/......./rbot/lib/stringTo.js:39:8)
at applyAction (/home/......./rbot/achieve.js:52:12)
at Immediate._onImmediate (/home/......./rbot/achieve.js:87:28)
The text was updated successfully, but these errors were encountered: