Trying to build a slack bot and facing error "Error: not_allowed_token_type"

Viewed 9921

Was just trying to build a simple slack bot by following a YouTube link and started getting the error Error: not_allowed_token_type

const bot = new SlackBot({
token: 'xoxb-TOKEN_GENERATED FROM SLACK SITE',
name: 'escalatorbot'  // what name should I give here
})

Can somebody tell why I am facing this error

3 Answers

The issue is releated with the new granular permissions app in slack, use the legacy bot on this url: https://api.slack.com/apps?new_classic_app=1 and then in Bots you can add legacy bot user and generate correct token

Related