This fork updates the Slack library to a more modern version that supports the JSON API changes made by Slack in October 2017. See https://api.slack.com/changelog/2017-10-keeping-up-with-the-jsons and node-slack-sdk
For the full tutorial, please check out the Medium post here: Syncing your Slack status with Google Calendar because nothing is sacred anymore. Otherwise, click the button below to begin your journey:
Slack recently changed how users interact with their API. To find your SLACK_TOKEN, follow these instructions:
Create a new Slack bot here.
Once the app has been created, click on the "OAuth & Permissions" link on the sidebar
Scroll down to "Scopes" and set the following permissions:
OAuth Access Token at the top of the page, and use it as your SLACK_TOKEN
In addition to setting the Heroku TIME_ZONE variable as suggested by the Medium article, I also set the TZ variable to a supported tz string so that meeting expiry is calculated correctly by the "moment" time library.
TIME_ZONEis a human readable string that appears in your Slack status like "EST".
TZis what Heroku uses for its app deployment and looks like "America/New_York".