{"id":23216008,"url":"https://github.com/digitalservicebund/troi-slack-bot","last_synced_at":"2026-05-14T20:02:08.856Z","repository":{"id":39976752,"uuid":"490318813","full_name":"digitalservicebund/troi-slack-bot","owner":"digitalservicebund","description":"Slack bot to help you fill out Troi","archived":false,"fork":false,"pushed_at":"2024-04-23T11:01:49.000Z","size":223,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-10-23T18:02:13.411Z","etag":null,"topics":["bot","slack","timesheets"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalservicebund.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-09T14:30:42.000Z","updated_at":"2024-04-23T11:01:52.000Z","dependencies_parsed_at":"2025-06-26T23:11:41.055Z","dependency_job_id":"7a365f1f-22c0-47f8-a836-d90b441e08a5","html_url":"https://github.com/digitalservicebund/troi-slack-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digitalservicebund/troi-slack-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalservicebund%2Ftroi-slack-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalservicebund%2Ftroi-slack-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalservicebund%2Ftroi-slack-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalservicebund%2Ftroi-slack-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalservicebund","download_url":"https://codeload.github.com/digitalservicebund/troi-slack-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalservicebund%2Ftroi-slack-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33041204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","slack","timesheets"],"created_at":"2024-12-18T20:22:02.665Z","updated_at":"2026-05-14T20:02:08.819Z","avatar_url":"https://github.com/digitalservicebund.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 ⏳ BleibTroy\nSlack bot to help you fill out Troi. Uses the [Bolt](https://github.com/SlackAPI/bolt-js) framework and the [troi-library](https://github.com/digitalservice4germany/troi-library) to talk with the [Troi API](https://v2.troi.dev/).\n\n#### 👉 Also check out our other self-built clients for Troi: [Achill](https://github.com/digitalservice4germany/achill) and [troi-cli](https://github.com/digitalservice4germany/troi-cli).\n\n## Setup the Slack app at api.slack.com\n\nThe following steps for setting up the Slack app are adapted from [this](https://slack.dev/bolt-js/tutorial/getting-started) tutorial. You need admin rights in your Slack workspace.\n\n- *Create New App* on [api.slack.com/apps](https://api.slack.com/apps) --\u003e *From scratch*\n- On the *Basic Information* page you land, the **Signing Secret** under *App Credentials* is the `SIGNING_SECRET` we need\n- *OAuth \u0026 Permissions* --\u003e *Bot Token Scopes* --\u003e click *Add an OAuth Scope* --\u003e `chat:write`, `im:history`, `users:read`, `users:read.email`\n- Scroll up to *OAuth Tokens for Your Workspace* and click *Install to Workspace*\n- After that, a **Bot User OAuth Token** gets generated, that's the `BOT_USER_OAUTH_TOKEN` we need\n- Under *Socket Mode* (left sidebar) turn on *Enable Socket Mode*, here you create the `SOCKET_MODE_TOKEN`\n- Under *Event Subscriptions* (left sidebar) turn on *Enable Events* and add the *Bot User Events* `message.im`\n- Under *App Home* (left sidebar) show bot as always online if you want to and set the checkmark below the turned on *Messages Tab* to active\n- Under *App Manifest* (left sidebar) set `messages_tab_enabled` to `true` (as seen [here](https://stackoverflow.com/a/69937581)) --\u003e *Save Changes*\n- If you make changes to scopes/permissions etc., reinstall the your app to the Workspace (under *Basic Information*, *Install your app*)\n\n## Setup the code locally\n\n```js\nnpm i\n```\n\nCreate `./config.json`:\n```json\n{\n  \"TROI_API_URL\": \"\",\n  \"TROI_CLIENT_NAME\": \"\",\n  \"TROI_USERNAME\": \"\",\n  \"TROI_PASSWORD\": \"\",\n  \"SLACK_BOT_USER_OAUTH_TOKEN\": \"\",\n  \"SLACK_SIGNING_SECRET\": \"\",\n  \"SLACK_SOCKET_MODE_TOKEN\": \"\",\n  \"GOOGLE_SHEETS_API_KEY\": \"\",\n  \"GOOGLE_SHEET_TROI_SAYINGS_ID\": \"\"\n}\n```\n\n## Run\n\n```bash\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalservicebund%2Ftroi-slack-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalservicebund%2Ftroi-slack-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalservicebund%2Ftroi-slack-bot/lists"}