{"id":15480800,"url":"https://github.com/chriszarate/slack-events-sns-command-example","last_synced_at":"2025-10-30T03:54:39.076Z","repository":{"id":144724759,"uuid":"89104500","full_name":"chriszarate/slack-events-sns-command-example","owner":"chriszarate","description":"Example Slack bot command implementation on AWS Lambda (via SNS)","archived":false,"fork":false,"pushed_at":"2017-04-23T20:45:43.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T04:42:27.499Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/chriszarate.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}},"created_at":"2017-04-22T23:08:14.000Z","updated_at":"2017-04-22T23:08:49.000Z","dependencies_parsed_at":"2024-07-16T17:17:11.760Z","dependency_job_id":null,"html_url":"https://github.com/chriszarate/slack-events-sns-command-example","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/chriszarate%2Fslack-events-sns-command-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fslack-events-sns-command-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fslack-events-sns-command-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fslack-events-sns-command-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chriszarate","download_url":"https://codeload.github.com/chriszarate/slack-events-sns-command-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247241098,"owners_count":20906938,"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":[],"created_at":"2024-10-02T05:00:29.665Z","updated_at":"2025-10-30T03:54:38.944Z","avatar_url":"https://github.com/chriszarate.png","language":"JavaScript","readme":"# An example Lambda function for a decoupled Slack bot\n\nWhen [Slack events are forwarded to SNS][slack-events-sns], it makes it easy to\nbuild small bots that respond to commands.\n\n1. Pick a command that you want your bot to respond to. For example, you might\n   want your bot to respond when users type `mybot ping`.\n\n2. Edit `index.js` to do something in response to that command.\n\n3. Create a SNS topic corresponding to that command and subscribe your Lambda\n   function to it.\n\nYou might need help with step 3—just ask your friendly neighborhood #bots\nchannel!\n\n## Events\n\nSee [Slack’s documentation][slack-events-docs] for an example of what’s included\nin a Slack event.\n\nSince this code is only triggered if a user types a specific command, e.g.,\n`mybot ping hello!`, some extra information is added to the event to help you\nrespond:\n\n```\n{\n  ...\n  command: {\n    subject: 'mybot',\n    verb: 'ping',\n    predicate: 'hello!'\n  }\n}\n```\n\n[slack-events-sns]: https://github.com/chriszarate/slack-events-sns-lambda\n[slack-events-docs]: https://api.slack.com/events/message\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriszarate%2Fslack-events-sns-command-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchriszarate%2Fslack-events-sns-command-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriszarate%2Fslack-events-sns-command-example/lists"}