At present, we are using express' router for interfacing with slack, which is less ergonomic than using bolt. this is problematic because we want to offload some tasks from form -> slack bot, which might be more cumbersome using bolt.
Solution
Shift from using express to using bolt + ExpressReceiver. This simplifies code-flow abit, but note that there si some validation logic which isn't captured here but will be downstream
Tests
NOTE: This is untested at present
Deploy Notes
go to SSM
search for SLACK
check that there are four secrets (2 tokens * 2 envs)
go to slack app directory
check that the slash commands are updated to the latest end-point
Problem
At present, we are using express' router for interfacing with slack, which is less ergonomic than using bolt. this is problematic because we want to offload some tasks from form -> slack bot, which might be more cumbersome using bolt.
Solution
Shift from using express to using
bolt
+ExpressReceiver
. This simplifies code-flow abit, but note that there si some validation logic which isn't captured here but will be downstreamTests
NOTE: This is untested at present
Deploy Notes
SLACK