This val provides a way of readily having lots of different Slack bots that do different things and support different Slack workspaces without needing a bunch of Val Town accounts. If you only need a single bot on a single workspace, just go with the approach in the Val Town docs.
This bot is essentially the one described in the Val Town docs, but without any of the details. Those are externalized by the SlackConfig and SlackFunction interfaces. It is just glue. In order to make it work, you will need the following additional glue:
- a public HTTP val to handle requests like this one
- a private val to supply any info missing from the public one like this one
Actually, those could both be public or all in the same val, but the whole point of this scheme is to allow you to hide anything you want.