{"id":19112379,"url":"https://github.com/actionhero/ah-slack-plugin","last_synced_at":"2025-10-17T04:55:52.218Z","repository":{"id":66669270,"uuid":"108204714","full_name":"actionhero/ah-slack-plugin","owner":"actionhero","description":"Make slack robots with ActionHero","archived":false,"fork":false,"pushed_at":"2020-03-22T20:27:45.000Z","size":213,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T06:41:21.489Z","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/actionhero.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}},"created_at":"2017-10-25T01:38:23.000Z","updated_at":"2020-03-22T20:27:47.000Z","dependencies_parsed_at":"2023-02-27T10:16:43.177Z","dependency_job_id":null,"html_url":"https://github.com/actionhero/ah-slack-plugin","commit_stats":{"total_commits":19,"total_committers":4,"mean_commits":4.75,"dds":"0.42105263157894735","last_synced_commit":"67ded417ab40245e0265180739467a6cd56bfb10"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/actionhero/ah-slack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-slack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-slack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-slack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-slack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actionhero","download_url":"https://codeload.github.com/actionhero/ah-slack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionhero%2Fah-slack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279285318,"owners_count":26140195,"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","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"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":[],"created_at":"2024-11-09T04:32:54.741Z","updated_at":"2025-10-17T04:55:52.186Z","avatar_url":"https://github.com/actionhero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActionHero Slack Plugin\n\n\n\n[![CircleCI](https://circleci.com/gh/actionhero/ah-slack-plugin.svg?style=svg)](https://circleci.com/gh/actionhero/ah-slack-plugin)\n\nA Slack server for ActionHero v18+.\nIt will listen to all messages in all the rooms it is a member of, and do stuff.\n\nDoes you action have a response?  It will be send back to slack.\nDon't want to respond in Slack?  Set `data.toRender = false` in your action's `run` method.\n\nTo see a full ActionHero project example which uses this plugin, try here: https://github.com/actionhero/actionhero-slackbot-template\n\n## Configuration\nIn your [ActionHero](www.actionheroj.com) project: `npm install --save ah-slack-plugin`\n\nMake a new bot for your slack team: https://my.slack.com/apps -\u003e manage -\u003e custom integrations -\u003e bots -\u003e new\nNote the TOKEN\n\n```js\n// config/plugins.js\nconst path = require('path')\n\nexports['default'] = {\n  plugins: (api) =\u003e {\n    return {\n      'slack': {path: path.join(__dirname, '..', 'node_modules', 'ah-slack-plugin')}\n    }\n  }\n}\n```\n\n```js\n// config/servers/slack.js\nexports['default'] = {\n  servers: {\n    slack: (api) =\u003e {\n      return {\n        enabled: true,\n        token: process.env.SLACK_BOT_TOKEN,\n        // which messages should we try to parse as actions?  (could be a /command, @ a user, etc)\n        // be sure to have a capture, as what you capture will be the action's name we try\n        // for example `/^action\\s(\\w*).*$/i` would match `action thing otherThing`, trying the action \"thing\"\n        messageActionRegexp: [\n          /^action\\s(\\w*).*$/i,\n        ]\n        // how many messages should we store a history of receiving\n        // messages can be accessed in `api.servers.servers.slack.messages`\n        messagesToSave: 100\n      }\n    }\n  }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionhero%2Fah-slack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factionhero%2Fah-slack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionhero%2Fah-slack-plugin/lists"}