Skip to content
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

enter and leave doesn't work #33

Closed
cdelmas opened this issue Mar 6, 2017 · 0 comments · Fixed by #35
Closed

enter and leave doesn't work #33

cdelmas opened this issue Mar 6, 2017 · 0 comments · Fixed by #35

Comments

@cdelmas
Copy link

cdelmas commented Mar 6, 2017

When using enter and leave to make the bot react on these events,

robot.enter (res) ->
    res.send res.random enterReplies
  robot.leave (res) ->
    res.send res.random leaveReplies

I get the following error:

ERROR TypeError: Cannot read property 'toLowerCase' of undefined
  at Brain.userForName (xxxx\basic\node_modules\hubot\src\brain.coffee:120:17, <js>:106:23)
  at Matteruser.send (xxxx\basic\node_modules\hubot-matteruser\src\matteruser.coffee:101:16, <js>:160:31)
  at runAdapterSend (xxxx\basic\node_modules\hubot\src\response.coffee:82:34, <js>:87:50)
  at allDone (xxxx\basic\node_modules\hubot\src\middleware.coffee:44:37, <js>:34:16)
  atxxxx\basic\node_modules\async\lib\async.js:274:13
  at Object.async.eachSeries (xxxx\basic\node_modules\async\lib\async.js:142:20)
  at Object.async.reduce (xxxx\basic\node_modules\async\lib\async.js:268:15)
  at xxxx\basic\node_modules\hubot\src\middleware.coffee:49:7, <js>:37:22
  at _combinedTickCallback (internal/process/next_tick.js:67:7)
  at process._tickCallback (internal/process/next_tick.js:98:9)

It looks like it is the same problem than #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant