Created
September 29, 2017 01:15
-
-
Save leapar/0e5702dbffb791d46319a5e8c48446fc to your computer and use it in GitHub Desktop.
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hubot代码分析
hubot-script-shellcmd
给hubot绑定两个规则:
respond 绑定
adapter 都会调用bot的receive函数
最后当消息来,执行listeners里面的自定义处理函数。processListeners函数写的很有水平。
参考