18F / charlie

18F's Slack bot, Charlie. Built on Bolt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

move to Slack App

afeld opened this issue · comments

Charlie is set up through an old-style Slack integration. I created a Slack App for the TTS Inspector, which is Slack's newer/preferred way of getting tokens etc. Probably makes sense to consolidate the former into the latter. More information.

Acceptance criteria

  • Charlie is leveraging the new/supported method for registering integrations with Slack

Unfortunately, it turns out that the Slack real-time messaging API does not work with new-style apps. Charlie relies on that API in order to be able to respond to commands/comments.

Looks like the Events API may be the successor?

Yes. And that raises two issues:

  1. Hubot uses the RTM API, so we'd have to also migrate away from Hubot (to maybe something like Bolt), which might be more of a lift?
  2. The Events API requires an open HTTP port, which would be new. The RTM API uses an outgoing websocket rather than having the bot listen for events. I've always been nervous about having open ports on Charlie, but if that's something you're comfortable with, then okay! 😄

Closed by #255