slackslack-apibotkit

Verifying botkit against the slack events api


I'm having a pretty basic problem - trying to upgrade my botkit app from 0.7.x -> 4.x.
I've used yo botkit to generate a new v4 bot, according to these instructions. Now that I try to configure the bot with slack I can't verify the events api the same way I did with the v0.7 bot.

When I go to slacks events api url and try to verify a request url, my node app is responding with a 404 not found error.
Looking at the code, it seems that the endpoint for /slack/receive which slack is trying to access is indeed removed from the code.
This prevents my bot from listening to messages and responding to them.

When I was configuring the bot in v0.7.x, I just cloned this repo and followed these instructions, but when I try to follow these instructions with the starter provided for v4.x the guide fails and I can't find a more relevant one.

Any idea what I'm missing here?


Solution

  • The url has changed in v4 - it is now /api/messages