Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update loadBot function

  • Loading branch information...
commit 0e2040559abd50f4b4d2acce4b59ef4edff1a4b9 1 parent 83d9628
Tom Bell authored December 24, 2011

Showing 2 changed files with 3 additions and 6 deletions. Show diff stats Hide diff stats

  1. 5  bin/hubot
  2. 4  index.coffee
5  bin/hubot
@@ -74,10 +74,7 @@ if Options.create
74 74
 else
75 75
   adapterPath = Path.resolve __dirname, "..", "src", "adapters"
76 76
 
77  
-  robot = Hubot.loadBot adapterPath,
78  
-                        Options.adapter,
79  
-                        Options.enableHttpd,
80  
-                        Options.name
  77
+  robot = Hubot.loadBot adapterPath, Options.adapter, Options.enableHttpd, Options.name
81 78
 
82 79
   if Options.version
83 80
     console.log robot.version
4  index.coffee
@@ -4,9 +4,9 @@
4 4
 #     YourBot = Hubot.robot 'campfire', 'yourbot'
5 5
 
6 6
 # Loads a Hubot robot
7  
-exports.loadBot = (adapterPath, adapterName, botName) ->
  7
+exports.loadBot = (adapterPath, adapterName, enableHttpd, botName) ->
8 8
   robot = require './src/robot'
9  
-  new robot adapterPath, adapterName, botName
  9
+  new robot adapterPath, adapterName, enableHttpd, botName
10 10
 
11 11
 exports.robot = ->
12 12
   require './src/robot'

0 notes on commit 0e20405

Please sign in to comment.
Something went wrong with that request. Please try again.