You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to test when bot initiate a private message ?
ex:
//scriptmodule.exports=(robot)->robot.hear/onboard(@.*)/,(res)->name=res.match[1]res.send"Glad to see a new face! Onboarding #{name} right now"res.sendPrivatename,"hey #{name} can you tell me your secret password ?"
//testit'initiate a private message to user',->
@room.user.say('stephane','onboard @arthur 28/10').then=>expect(@room.privateMessages).to.eql{'arthur': [['hubot','hey @arthur can you tell me your secret password ?']]}
The text was updated successfully, but these errors were encountered:
Hey,
Is there a way to test when bot initiate a private message ?
ex:
The text was updated successfully, but these errors were encountered: