Skip to content

cthit/slack-strava-integration

 
 

Repository files navigation

Slack Strava Integration

A script for posting a leaderboard, fetched from Strava, to a dedicated Slack channel. Running the script on a weekly basis sums up the distance run by each user and posts it as a message in Slack.

Contributors

Requirements

Setup

  1. Copy the example.env file to .env.
  2. In .env, set the club_id to the desired Strava club id (ex: itchalmerslop) and set the hook_token to a Slack incoming web hook token to be used (could also print to command line while developing).
  3. Install dependencies with
npm install

Run the script with

node src/refresh_tokens.js # Creates/Refreshes tokens.json
node src/index.js          # Posts to slack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 95.8%
  • Dockerfile 4.2%