Skip to content

Bot to celebrate and log High Seas coding activity in Slack (and eventually Discord)

Notifications You must be signed in to change notification settings

hackclub/sailors-log

Repository files navigation

Check it out in #high-seas-kudos on the Hack Club Slack! Run /sailorslog on in any channel to start.

Every time you reach an hour coding on a project, @Sailor's Log will post a message like this to congratulate you:

You can also see a leaderboard of everyone in the current channel by running /sailorslog leaderboard.

Sailor's Log

User Flow

Slack:

  1. /sailorslog on in any channel to opt in
  2. TODO /sailorslog leaderboard on to enable the leaderboard for all opted in users in the channel
  3. /sailorslog leaderboard to see the current leaderboard for the channel they're in (message visible only to them)

Sample message: “@zrl just reached 2 hours coding on etl-scripts (LINKED if repo exists) in High Seas (LINKED). Nice work!”

Sample leaderboard:

Today's leaderboard:

1. zrl - 2 hours (projectName (LINKED if repo exists) & projectName in Java, C#, and Bash)
2. zrl - 1 hour
3. zrl - 1 hour

Architecture

Poll for new heartbeats

When new heartbeats come in, see which users had heartbeats

Make an API request to see their current hours toward projects

Save the API response in the DB so we can calculate the leaderboard later

If they've reached an hour, post a message to Slack

About

Bot to celebrate and log High Seas coding activity in Slack (and eventually Discord)

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published