Skip to content

Commit

Permalink
Allow use with a non-bot api token
Browse files Browse the repository at this point in the history
Some bots should talk like people.
  • Loading branch information
crazymykl committed Apr 1, 2015
1 parent 528656f commit d8d6660
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 d8d6660

Please sign in to comment.