Skip to content

Commit

Permalink
[adapter-boot-event] Make sure the default adapters have emit connect…
Browse files Browse the repository at this point in the history
…ed events.
  • Loading branch information
Sean Bryant committed Feb 12, 2012
1 parent 4281b9e commit ee8a29e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/adapters/campfire.coffee
Expand Up @@ -65,6 +65,8 @@ class Campfire extends Adapter

@bot = bot

self.emit "connected"

exports.use = (robot) ->
new Campfire robot

Expand Down Expand Up @@ -247,4 +249,3 @@ class CampfireStreaming extends EventEmitter

request.on "error", (err) ->
logger.error "Campfire request error: #{err}"

2 changes: 1 addition & 1 deletion src/adapters/shell.coffee
Expand Up @@ -34,9 +34,9 @@ class Shell extends Adapter
user = @userForId '1', name: "Shell", room: "Shell"
@receive new Robot.TextMessage user, buffer

self.emit "connected"
@repl.setPrompt "#{@robot.name}> "
@repl.prompt()

exports.use = (robot) ->
new Shell robot

0 comments on commit ee8a29e

Please sign in to comment.