{"id":21561750,"url":"https://github.com/synonymdev/pm2-slack-killswitch","last_synced_at":"2025-03-18T04:47:00.018Z","repository":{"id":235316046,"uuid":"674554097","full_name":"synonymdev/pm2-slack-killswitch","owner":"synonymdev","description":"PM2 Slack Killswitch","archived":false,"fork":false,"pushed_at":"2023-08-16T06:33:18.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T11:29:13.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synonymdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-08-04T08:17:42.000Z","updated_at":"2023-08-17T12:05:29.000Z","dependencies_parsed_at":"2024-04-23T02:16:41.166Z","dependency_job_id":"e866a3c7-2e80-4391-a1bf-111c050bc173","html_url":"https://github.com/synonymdev/pm2-slack-killswitch","commit_stats":null,"previous_names":["synonymdev/pm2-slack-killswitch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synonymdev%2Fpm2-slack-killswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synonymdev%2Fpm2-slack-killswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synonymdev%2Fpm2-slack-killswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synonymdev%2Fpm2-slack-killswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synonymdev","download_url":"https://codeload.github.com/synonymdev/pm2-slack-killswitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244159990,"owners_count":20408019,"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-11-24T09:27:53.029Z","updated_at":"2025-03-18T04:46:59.992Z","avatar_url":"https://github.com/synonymdev.png","language":"TypeScript","readme":"# PM2 Slack Killswitch\n\nA Slack bot for pm2 to start/stop processes.\n\n- User whitelist.\n- 2-Factor authentication.\n- Logs to a Slack channel.\n\n## Getting Started\n\n### Register Slack App\n\n- [Create](https://api.slack.com/apps) a new Slack app.\n- Choose from an app manifest.\n- Select your workspace.\n- Copy content of [app_manifest.json](./app_manifest.json) to the text area.\n- Create.\n- Install to workspace.\n- Add app `pm2-slack-killswitch` to the log channel.\n\n### Setup Bot\n\n\n```\ngit clone https://github.com/synonymdev/pm2-slack-killswitch.git\ncd pm2-slack-killswitch\nnpm i\n```\n\nConfigure the bot with the `config.js` file. Checkout [config.example.js](./config.example.js) for an example.\n\nRun `npm run start` to start the bot.\n\n### Slack Usage\n\nRun `/killswitch-list` to list all processes.\n\n## pm2\n\nA `ecosystem.config.js` is provided to run the service with [pm2](https://pm2.keymetrics.io/).\n\n- Build typescript to javascript: `npm run build`.\n- Start service: `pm2 start ecosystem.config.js`.\n  - Watcher logs: `pm2 logs pm2-slack-killswitch`.\n- Stop service: `pm2 stop ecosystem.config.js`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynonymdev%2Fpm2-slack-killswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynonymdev%2Fpm2-slack-killswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynonymdev%2Fpm2-slack-killswitch/lists"}