forked from hubotio/hubot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.coffee
25 lines (23 loc) · 966 Bytes
/
index.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
User = require './src/user'
Brain = require './src/brain'
Robot = require './src/robot'
Adapter = require './src/adapter'
Response = require './src/response'
{Listener,TextListener} = require './src/listener'
{TextMessage,EnterMessage,LeaveMessage,TopicMessage,CatchAllMessage} = require './src/message'
module.exports = {
User
Brain
Robot
Adapter
Response
Listener
TextListener
TextMessage
EnterMessage
LeaveMessage
TopicMessage
CatchAllMessage
}
module.exports.loadBot = (adapterPath, adapterName, enableHttpd, botName) ->
new Robot adapterPath, adapterName, enableHttpd, botName