{"id":45545981,"url":"https://github.com/jordanleven/reaction-bot","last_synced_at":"2026-02-23T04:47:33.948Z","repository":{"id":44056842,"uuid":"345140615","full_name":"jordanleven/reaction-bot","owner":"jordanleven","description":"A simple installable package to register bots that can listen for reactions with specific emoji in Slack and post the message to channels.","archived":false,"fork":false,"pushed_at":"2023-02-09T18:36:58.000Z","size":400,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-29T09:05:58.635Z","etag":null,"topics":["bot","slack"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jordanleven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-03-06T16:28:40.000Z","updated_at":"2022-02-12T16:17:03.000Z","dependencies_parsed_at":"2024-06-21T08:54:57.422Z","dependency_job_id":null,"html_url":"https://github.com/jordanleven/reaction-bot","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jordanleven/reaction-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanleven%2Freaction-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanleven%2Freaction-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanleven%2Freaction-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanleven%2Freaction-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordanleven","download_url":"https://codeload.github.com/jordanleven/reaction-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanleven%2Freaction-bot/sbom","scorecard":{"id":532682,"data":{"date":"2025-08-11","repo":{"name":"github.com/jordanleven/reaction-bot","commit":"34e45bf1e163481c1b80e53b146d6b5144e3c37f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T06:06:45.787Z","repository_id":44056842,"created_at":"2025-08-20T06:06:45.787Z","updated_at":"2025-08-20T06:06:45.787Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T04:36:46.119Z","status":"ssl_error","status_checked_at":"2026-02-23T04:36:25.794Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"],"created_at":"2026-02-23T04:47:33.370Z","updated_at":"2026-02-23T04:47:33.926Z","avatar_url":"https://github.com/jordanleven.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![banner](/assets/banner.jpg)\n\n# Reaction Bot\n\nA simple bot that can listen for reactions with specific emoji in Slack.\n\n## Installing Reaction Bot\n\nTo install this package in your existing Go project, run:\n\n```sh\ngo get -u github.com/jordanleven/reaction-bot\n```\n\nThen install additional dependences:\n\n```sh\ngo get -t\n```\n\nImport into your file:\n\n```go\nimport \"github.com/jordanleven/reaction-bot/reactionbot\"\n```\n\n## Initializing Reaction Bot\n\nTo initialize Reaction Bot, run `reactionbot.New()` with the your options.\n\n```go\nfunc main() {\n  registrationOptions := reactionbot.RegistrationOptions{\n    SlackTokenApp:   slackTokenApp,\n    SlackTokenBot:   slackTokenBot,\n    RegisteredEmoji: registeredReactions,\n  }\n\n  reactionbot.New(registrationOptions)\n}\n```\n\n### Configuration\n\n1. `SlackTokenApp`: The Slack app token obtained from Slack.\n1. `SlackTokenBot`: The Slack bot token obtained from Slack.\n1. `RegisteredEmoji`: The list of emoji to register reactions to (see Registering Reactions below).\n\n### Retrieving the authentication credentials\n\nAlthough you may retrieve the tokens from your env file yourself, you may also use the `GetSlackTokenApp` and `GetSlackTokenBot` functions retrieve them (see example above). Each of these functions accepts the name of the environmental variable to retrieve the tokens from, and will subsequently check the formatting of the tokens to confirm they are the correct ones.\n\n```go\n  slackTokenApp := reactionbot.GetSlackTokenApp(\"SLACK_TOKEN_APP\")\n  slackTokenBot := reactionbot.GetSlackTokenBot(\"SLACK_TOKEN_BOT\")\n```\n\n### Registering Emoji\n\nYou may register an unlimited number of emoji reactions in `RegisteredEmoji`. When the emoji identified as the key is used in any channel where Reaction Bot is added, the message will be posted to the identified channel.\n\n```go\n  // The name of the bot reaction. This is only used when logging reactions on the server.\n  Name         string\n  // The channel to post the reaction to.\n  Channel      string\n```\n\nWhen registered in `RegisteredEmoji`, a bot named \"Mr. Randomness\" with that will post messages to the \"random\" channel when reacted to with the \"laughing\" emoji would look like this.\n\n```go\nvar registeredReactions = reactionbot.RegisteredReactions{\n  \"laughing\": {\n    Name:    \"Randomness\",\n    Channel: \"random\",\n  },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanleven%2Freaction-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordanleven%2Freaction-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanleven%2Freaction-bot/lists"}