Team happiness Slack Bot which populates the related Engineering Scorecard metric.
- Weekly Happiness Check-In: Automatically prompts members of the group
SLACK_TEAM_CHANNEL
every Friday to rate their happiness on a scale.
- Pushed to Sheets: The results are automatically pushed to the Google Sheet specified in
TeamHappinessGoogleSheetService#SPREADSHEET_ID
.
- Java 17 is required (i.e.
sdk use java 17.0.2-open
) - Run
./gradlew build
- Run
SlackTeamHappinessApplication
using your IDE with the variables (populate with relevant test values):
-DSLACK_APP_TOKEN= // test bot details
-DSLACK_BOT_TOKEN= // test bot details
-DSLACK_SIGNING_SECRET= // test bot details
-DSLACK_TEST_USER_ID= // your or another test user id
Get your Slack user ID:
- Click on your profile picture
- Click "View full profile"
- Click on "more" and click "Copy member ID"
Additionally, you also need Google Service Account Credentials to be able to access Google Sheets, which need to reside in <user.home>/conf/credentials.json
.
- Run
./gradlew bootJar
and deploy to Enscale using the Deployment Manager. - Remember to use the variable
SLACK_TEAM_GROUP_ID
instead ofSLACK_TEST_USER_ID
when you are ready to send this message to more than one person.