{"id":23092945,"url":"https://github.com/sharl/slackbotapp","last_synced_at":"2026-06-08T16:04:56.791Z","repository":{"id":61888680,"uuid":"556081730","full_name":"sharl/slackbotapp","owner":"sharl","description":"sample of slack bot app","archived":false,"fork":false,"pushed_at":"2026-05-23T17:30:21.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-23T19:19:27.817Z","etag":null,"topics":["slack","slack-bot","slackbot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-10-23T02:31:13.000Z","updated_at":"2026-05-23T17:30:25.000Z","dependencies_parsed_at":"2024-10-25T10:41:52.322Z","dependency_job_id":"384b9b40-ef8e-40f2-b4a0-52090467129f","html_url":"https://github.com/sharl/slackbotapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sharl/slackbotapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbotapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbotapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbotapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbotapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharl","download_url":"https://codeload.github.com/sharl/slackbotapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbotapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["slack","slack-bot","slackbot"],"created_at":"2024-12-16T21:46:02.596Z","updated_at":"2026-06-08T16:04:56.775Z","avatar_url":"https://github.com/sharl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SlackbotApp\n\n## How to setup\n\n1. make app\n\n- Open [https://api.slack.com/apps?new_app=1](https://api.slack.com/apps?new_app=1)\n- [Create an App] -\u003e [From scratch]\n- Enter [App Name] and select [workspace]\n- [Create App]\n\n2. enable socket mode and generate slack app token\n\n- Settings [Socket Mode] on left side column\n- Connect using Socket Mode\n - Enable Socket Mode [On]\n - Enter [Token Name] ex. \"socket mode\"\n - [Generate]\n  - xapp-........... **SLACK_APP_TOKEN**\n - [Done]\n\n3. create global shortcut\n\n- select Features [Interactivity \u0026 Shortcuts] on left side column\n- Shortcuts [Create New Shortcut]\n- select [Global] and [Next]\n- fill [Name]\n- fill [Short Description]\n- fill [Callback ID]\n- [Create]\n- [Save Changes]\n\n4. enable events\n\n- select Features [Event Subscriptions] on left side column\n - Enable Events [On]\n- select [Subscribe to bot events]\n - [Add Bot User Event]\n - fill [message.channels] in form\n - ... and/or handled event\n- [Save Changes]\n\n5. other settings\n\n- select Featuers [oAuth \u0026 Permissions] on left side column\n- Scopes\n - Bot Token Scopes\n - [Add an OAuth Scope]\n - fill [chat:write] in form and enable **MUST**\n - add proper scope...\n\n6. App Home settings\n\n- select Features [App Home] on left side column\n- Your App's Presence in Slack\n - App Display Name [Edit]\n - fill Display Name (Bot Name)\n - [Save]\n\n7. install app to workspace\n\n- select Settings [Install App] on left side column\n- [Install to Workspace]\n- [Allow]\n- Installed App Settings\n - OAuth Tokens for Your Workspace\n  - Bot User OAuth Token\n   - xoxb-...................... **SLACK_BOT_TOKEN**\n\n## How to run\n\n```\n$ pip install -U -r requirements.txt\n$ export SLACK_APP_TOKEN=xapp-..............\n$ export SLACK_BOT_TOKEN=xoxb-..............\n$ ./app.py\n```\n\n## Module usage\n\n### message.switchbot\n\nSwitchbot token and secret write to `$HOME`/.switchbot\n\n```\n{\n  \"token\": \"xxxxxxxx\",\n  \"secret\": \"yyyyyyyy\"\n}\n```\n\n#### message.switchbot.meter\n\n- config.json\n```\n        \"message.switchbot.meter\": {\n            \"user\": \"user name (NOT display name)\",\n            \"devices\": [\n                {\n                    \"keyword\": \"wake word 1\",\n                    \"device\": \"\u003cdevice ID\u003e\"\n                },\n                {\n                    \"keyword\": \"wake word 2\",\n                    \"device\": \"\u003cdevice ID\u003e\"\n                }\n            ]\n        }\n```\n\n#### message.switchbot.plug\n\n- config.json\n```\n        \"message.switchbot.plug\": {\n            \"user\": \"user name (NOT display name)\",\n            \"devices\": [\n                {\n                    \"on\": \"on wake word 1\",\n                    \"off\": \"off wake word 1\",\n                    \"device\": \"\u003cdevice ID\u003e\"\n                },\n                {\n                    \"on\": \"on wake word 2\",\n                    \"off\": \"off wake word 2\",\n                    \"device\": \"\u003cdevice ID\u003e\"\n                }\n            ]\n        }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharl%2Fslackbotapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharl%2Fslackbotapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharl%2Fslackbotapp/lists"}