rescuetime-slack

1.3.3 • Public • Published

⏰ RescueTime Slack

Post your RescueTime daily productivity pulse and hours logged to Slack.

Deno CI GitHub Contributors RescueTime Slack TypeScript semantic-release

Screenshot of bot message

⭐ Getting started

The code in index.ts fetches your RescueTime daily statistics and posts it on Slack using a webhook configured in rescuetime-slack.yml:

webhook: https://hooks.slack.com/services/$WEBHOOK
apiKeys:
  "U013KLNLY86": "$API_KEY"

More people can be added under the apiKeys key in the YAML file by adding their Slack user IDs. For each user, $API_KEY is replaced by the API key for their name, stored in GitHub Secrets; for example "U013KLNLY86" transforms to API_KEY_U013KLNLY86 (the name of the environment variable). The $WEBHOOK environment variable has the Slack webhook.

To get started, fork this project and update the YAML configuration and GitHub Secrets to get your own bot. You can also customize the bot name and icon in the configuration file (botName and botIcon respectively).

The bot also adds a "RescueScore" which is the productivity score * number of minutes, and gives a great overview of the total productivity.

👩‍💻 Automation

A GitHub Actions workflow runs the following script every day at 8 am UTC to post the message:

deno run --unstable --allow-net --allow-read --allow-env mod.ts

📄 License

MIT © Anand Chowdhary

Readme

Keywords

none

Package Sidebar

Install

npm i rescuetime-slack

Weekly Downloads

0

Version

1.3.3

License

MIT

Unpacked Size

92.4 kB

Total Files

17

Last publish

Collaborators

  • anandchowdhary