isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

ref(bot): use bolt for app #1391

Closed seaerchin closed 4 months ago

seaerchin commented 4 months ago

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 downstream

Tests

NOTE: This is untested at present

Deploy Notes

seaerchin commented 4 months ago

pending actions on my end: spin up local ngrok instance, register a mock endpoint and check to see if it works