Skip to content

Commit

Permalink
Fail gracefully if someone provides a old integration token
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhammond committed Dec 8, 2014
1 parent 9a7f5ba commit 8950b23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/slack.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class SlackBot extends Adapter

@robot.logger.info Util.inspect(options)
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-')

@options = options

Expand Down

0 comments on commit 8950b23

Please sign in to comment.