Skip to content

Commit

Permalink
Fix typo references to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmd authored and paulhammond committed Dec 8, 2014
1 parent f7cec4e commit 7095a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slack.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SlackBot extends Adapter
@receive new TextMessage user, txt, msg.ts

send: (envelope, messages...) ->
channel = slack.getChannelGroupOrDMByName envelope.room
channel = @client.getChannelGroupOrDMByName envelope.room

for msg in messages
@robot.logger.debug "Sending to #{envelope.room}: #{msg}"
Expand All @@ -91,7 +91,7 @@ class SlackBot extends Adapter
@send envelope, "#{envelope.user.name}: #{msg}"

topic: (params, strings...) ->
channel = slack.getChannelGroupOrDMByName envelope.room
channel = @client.getChannelGroupOrDMByName envelope.room
channel.setTopic strings.join "\n"

exports.use = (robot) ->
Expand Down

0 comments on commit 7095a76

Please sign in to comment.