forked from hubotio/hubot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.coffee
26 lines (24 loc) · 1004 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
26
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'
{Message,TextMessage,EnterMessage,LeaveMessage,TopicMessage,CatchAllMessage} = require './src/message'
module.exports = {
User
Brain
Robot
Adapter
Response
Listener
TextListener
Message
TextMessage
EnterMessage
LeaveMessage
TopicMessage
CatchAllMessage
}
module.exports.loadBot = (adapterPath, adapterName, enableHttpd, botName, botAlias) ->
new Robot adapterPath, adapterName, enableHttpd, botName, botAlias