{"id":20699931,"url":"https://github.com/mrmarble/pm2-telegram-bot","last_synced_at":"2025-07-22T11:40:16.501Z","repository":{"id":42231641,"uuid":"144904615","full_name":"MrMarble/PM2-Telegram-bot","owner":"MrMarble","description":"Node.js bot that let you control PM2 with Telegram","archived":false,"fork":false,"pushed_at":"2023-01-06T11:12:07.000Z","size":812,"stargazers_count":23,"open_issues_count":11,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:34:28.361Z","etag":null,"topics":["nodejs","pm2","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/MrMarble.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}},"created_at":"2018-08-15T21:21:24.000Z","updated_at":"2024-10-09T06:28:45.000Z","dependencies_parsed_at":"2023-02-05T23:00:51.988Z","dependency_job_id":null,"html_url":"https://github.com/MrMarble/PM2-Telegram-bot","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/MrMarble%2FPM2-Telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2FPM2-Telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2FPM2-Telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrMarble%2FPM2-Telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrMarble","download_url":"https://codeload.github.com/MrMarble/PM2-Telegram-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250333884,"owners_count":21413472,"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":["nodejs","pm2","telegram","telegram-bot"],"created_at":"2024-11-17T00:32:51.082Z","updated_at":"2025-04-22T22:33:16.426Z","avatar_url":"https://github.com/MrMarble.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PM2-Telegram-bot\n  This bot let you control [PM2](https://pm2.io/doc/) with Telegram\n\n## How to install\n1. Clone the repository in the same computer/server where pm2 is running\n2. Run `npm install` in the same directory as the project files to install all the dependencies then run `npm run build`\n3. you have two options to run the bot:\n  1. Set the token that [@botFather](https://t.me/BotFather) gave you as an environment variable and then run `node bot.js`:\n  ```bash\n  TOKEN=SuPeRfAlSeToKeN pm2 start ./dist/app.js\n  ```\n  2. Open `config.json` and add the telegram token that [@botFather](https://t.me/BotFather) gave you and then run `pm2 start config.json`:\n```json\n\"TOKEN\": \"\",\n```\n\n## Usage\nFor now there are only two commands available, list and restart.\n\n### /list, /ls\n  List all the processes that pm2 is managing \n  \n  ![](assets/markdown-img-paste-20180819124409749.png) ![](assets/markdown-img-paste-20180819124449325.png)\n### /restart\nLet you restart or start a process by the name or the id, you can also use `all` to restart all the proccesses.\n\n![](assets/markdown-img-paste-2018081912521625.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmarble%2Fpm2-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrmarble%2Fpm2-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmarble%2Fpm2-telegram-bot/lists"}