{"id":24923229,"url":"https://github.com/doarakko/release-party","last_synced_at":"2026-04-20T09:32:42.307Z","repository":{"id":210522856,"uuid":"717422836","full_name":"Doarakko/release-party","owner":"Doarakko","description":"Trigger the Slack message to light up the SwitchBot Color Bulb.","archived":false,"fork":false,"pushed_at":"2026-02-14T03:37:04.000Z","size":2158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-14T10:40:31.957Z","etag":null,"topics":["deno","slack","slack-platform","switchbot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Doarakko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"Doarakko"}},"created_at":"2023-11-11T13:02:55.000Z","updated_at":"2026-02-14T03:37:07.000Z","dependencies_parsed_at":"2023-12-03T12:46:38.621Z","dependency_job_id":null,"html_url":"https://github.com/Doarakko/release-party","commit_stats":null,"previous_names":["doarakko/release-party"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Doarakko/release-party","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Frelease-party","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Frelease-party/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Frelease-party/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Frelease-party/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doarakko","download_url":"https://codeload.github.com/Doarakko/release-party/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Frelease-party/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["deno","slack","slack-platform","switchbot"],"created_at":"2025-02-02T11:36:52.134Z","updated_at":"2026-04-20T09:32:42.300Z","avatar_url":"https://github.com/Doarakko.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Doarakko"],"categories":[],"sub_categories":[],"readme":"# release-party\n\nTrigger the Slack message to light up the SwitchBot Color Bulb.\n\n![example](example.gif)\n\n## Requirements\n\n- Slack with paid plan\n- Slack CLI\n- [SwitchBot Color Bulb](https://www.switch-bot.com/products/switchbot-color-bulb)\n- SwitchBot API Key\n  - [SwitchBot Help Center: How to obtain a Token?](https://support.switch-bot.com/hc/en-us/articles/12822710195351-How-to-obtain-a-Token-)\n- SwitchBot device id\n\n## Usage\n\n1. Setup\n\n   ```sh\n   git clone https://github.com/Doarakko/release-party\n   cd release-party\n   ```\n\n2. Enter your release message and channel ids to `triggers/trigger.ts`\n\n   ```ts\n     event: {\n       event_type: TriggerEventTypes.MessagePosted,\n       filter: {\n         version: 1.0,\n         root: {\n           operator: \"AND\",\n           inputs: [\n             {\n               // triggers only bot messages\n               statement: \"{{data.user_id}} == null\",\n             },\n             {\n               operator: \"OR\",\n               inputs: [\n                 {\n                   statement: \"{{data.text}} CONTAINS 'deploy'\",\n                 },\n                 {\n                   statement: \"{{data.text}} CONTAINS 'test'\",\n                 },\n               ],\n             },\n           ],\n         },\n       },\n       channel_ids: [_test_channel_id],\n     },\n   ```\n\n3. Deploy\n\n   ```sh\n   slack deploy\n   slack trigger create\n\n   # SwitchBot\n   slack env add SWITCHBOT_API_KEY \u003cyour key\u003e\n   slack env add SWITCHBOT_DEVICE_ID \u003cyour id\u003e\n   ```\n\n   When updating the trigger, run the following command.\n\n   ```sh\n   slack trigger update --trigger-id=yyyy\n   ```\n\n## Hints\n\n### Run on local\n\n1. Enter your environmental variables to `.env`\n\n    ```sh\n    cp .env.example .env\n    ```\n\n2. Run\n\n   ```sh\n   slack run\n   slack trigger create\n   ```\n\n### Check using Slack incoming webhook\n\n```sh\ncurl -X POST -H 'Content-type: application/json' --data '{\"text\":\"test\"}' \"https://hooks.slack.com/services/xxxx/yyyy/zzzz\"\n```\n\n### SwitchBot: get device id\n\n```sh\ncurl \"https://api.switch-bot.com/v1.0/devices\" -H \"Authorization: \u003cSWITCHBOT_API_KEY\u003e\"\n```\n\n### SwitchBot: check if you can turn on the light via API\n\n```sh\n# on\ncurl -X POST -H 'Content-type: application/json' --data '{\"command\": \"turnOn\"}' \"https://api.switch-bot.com/v1.0/devices/\u003cSWITCHBOT_DEVICE_ID\u003e/commands\" -H \"Authorization: \u003cSWITCHBOT_API_KEY\u003e\"\n\n# off\ncurl -X POST -H 'Content-type: application/json' --data '{\"command\": \"turnOff\"}' \"https://api.switch-bot.com/v1.0/devices/\u003cSWITCHBOT_DEVICE_ID\u003e/commands\" -H \"Authorization: \u003cSWITCHBOT_API_KEY\u003e\"\n```\n\n## Reference\n\n- [release-party-5.0](https://github.com/Doarakko/release-party-5.0) - Philips Hue version using Raspberry Pi\n- [職場を明るくする](https://devblog.thebase.in/entry/work-happy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoarakko%2Frelease-party","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoarakko%2Frelease-party","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoarakko%2Frelease-party/lists"}