{"id":23092958,"url":"https://github.com/sharl/slackbot3","last_synced_at":"2026-05-03T02:37:59.654Z","repository":{"id":60418678,"uuid":"542551258","full_name":"sharl/slackbot3","owner":"sharl","description":"sample of slack bot","archived":false,"fork":false,"pushed_at":"2022-12-05T11:44:44.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T07:13:59.847Z","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}},"created_at":"2022-09-28T11:18:03.000Z","updated_at":"2022-09-29T07:15:02.000Z","dependencies_parsed_at":"2023-01-24T05:15:52.798Z","dependency_job_id":null,"html_url":"https://github.com/sharl/slackbot3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbot3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbot3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbot3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharl%2Fslackbot3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharl","download_url":"https://codeload.github.com/sharl/slackbot3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247061210,"owners_count":20877166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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:05.276Z","updated_at":"2026-05-03T02:37:54.628Z","avatar_url":"https://github.com/sharl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"slackbot3\n=========\n\nsample script for slackbot\n\n## preinstall\n```\ngit clone https://github.com/sharl/geeklets.git\ncp geeklets/.amedas ~\ncp geeklets/{amedas,amesh} ~/bin\n```\n\n- amesh use imagemagick\n\n## prereq\n```\npip install --upgrade slack_sdk aiohttp requests bs4\n```\n\n## usage\n\n```\n$ SLACK_TOKEN=xoxb-hogehoge ./slackbot3.py\n```\n\n## Appendix\n```\nSLACK_TOKEN=xoxb-hogehoge docker-compose up -p project_name -d\n```\n\n## Module usage\n\n### message.switchbot.meter\n\n- config.json\n```\n        \"message.switchbot.meter\": {\n            \"keyword\": \"wake word\",\n            \"user\": \"user name (NOT display name)\",\n            \"token\": \"\u003cdeveloper token\u003e\",\n            \"device\": \"\u003cdevice ID\u003e\"\n        }\n```\n\n### message.switchbot.plug\n\n- config.json\n```\n        \"message.switchbot.plug\": {\n            \"on\": \"on wake word\",\n            \"off\": \"off wake word\",\n            \"user\": \"user name (NOT display name)\",\n            \"token\": \"\u003cdeveloper token\u003e\",\n            \"device\": \"\u003cdevice ID\u003e\"\n        }\n```\n\n### message.openai\n\n- config.json\n```\n\t\"message.openai\": {\n\t    \"prefix\": \"hamu:\",\n\t    \"sorry\": \"Sorry, I am not sure.\",\n\t    \"apikey\": \"sk-xxxxxx\"\n\t}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharl%2Fslackbot3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharl%2Fslackbot3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharl%2Fslackbot3/lists"}