Skip to content

TelegramBotDevs/PM2-Telegram-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PM2-Telegram-bot

This bot let you control PM2 with Telegram

How to install

  1. Clone the repository in the same computer/server where pm2 is running
  2. Run npm install in the same directory as the project files to install all the dependencies
  3. you have two options to run the bot:
  4. Open bot.js and add the telegram token that @botFather gave you and then run node bot.js:
const TOKEN = process.env.TOKEN || "YOUR TOKEN HERE";
  1. Open config.json and add the telegram token that @botFather gave you and then run pm2 start config.json:
"TOKEN": "",

Usage

For now there are only two commands available, list and restart.

/list, /ls

List all the processes that pm2 is managing

/restart

Let you restart or start a process by the name or the id, you can also use all to restart all the proccesses.

About

Node.js bot that let you control PM2 with Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%