Open BoraVyvorant opened 6 years ago
Another option would of course to be to run a bot to do the announcements as well rather than setting reminders. That does require the bot to be running all the time and schedule the announcements itself, though, which is a lot more work.
This one's obvious, but turns out to be non-trivial. You can't (as I originally hoped) set reminders just by sending a
/remind
message. Instead you have to use the authenticated Slack API, which is of course OAuth2-based. So we'd have to register a Slack app, have a second set of client secrets and a second access token (Slack doesn't use refresh tokens).It seems to be fairly well-documented, and there's a GitHub organisation with a lot of helpful code for use with Ruby: https://github.com/slack-ruby