Permalink
Browse files

Fix up index.coffee

  • Loading branch information...
1 parent 6ee74f8 commit 9d45ed4e018c32d44e4e33521796f4a1f2ba92cb @tombell tombell committed Jan 11, 2013
Showing with 14 additions and 12 deletions.
  1. +14 −12 index.coffee
View
@@ -6,17 +6,19 @@ Response = require './src/respons
{Listener,TextListener} = require './src/listener'
{TextMessage,EnterMessage,LeaveMessage,CatchAllMessage} = require './src/message'
+module.exports = {
+ User
+ Brain
+ Robot
+ Adapter
+ Response
+ Listener
+ TextListener
+ TextMessage
+ EnterMessage
+ LeaveMessage
+ CatchAllMessage
+}
+
module.exports.loadBot = (adapterPath, adapterName, enableHttpd, botName) ->
new Robot adapterPath, adapterName, enableHttpd, botName
-
-module.exports.User = User
-module.exports.Brain = Brain
-module.exports.Robot = Robot
-module.exports.Adapter = Adapter
-module.exports.Response = Response
-module.exports.Listener = Listener
-module.exports.TextListener = TextListener
-module.exports.TextMessage = TextMessage
-module.exports.EnterMessage = EnterMessage
-module.exports.LeaveMessage = LeaveMessage
-module.exports.CatchAllMessage = CatchAllMessage

0 comments on commit 9d45ed4

Please sign in to comment.