Skip to content

Commit

Permalink
Merge pull request slackapi#174 from crazymykl/patch-1
Browse files Browse the repository at this point in the history
Allow use with a non-bot api token
  • Loading branch information
paulhammond committed Apr 9, 2015
2 parents 1a18bc9 + d8d6660 commit b11f8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slack.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SlackBot extends Adapter
autoMark: true

return @robot.logger.error "No services token provided to Hubot" unless options.token
return @robot.logger.error "v2 services token provided, please follow the upgrade instructions" unless (options.token.substring(0, 5) == 'xoxb-')
return @robot.logger.error "v2 services token provided, please follow the upgrade instructions" unless (options.token.substring(0, 5) in ['xoxb-', 'xoxp-'])

@options = options

Expand Down

0 comments on commit b11f8fb

Please sign in to comment.