Discord bot to help manage apps with PM2 and view system information
- Clone the repository
- Run
yarn install
- Create config file:
cp config/default.json config/local.json
- Edit
config/local.json
and add your bot token, clientId, and guildId - Run
yarn build
- Run
yarn start
- Supported commands:
pm2 list
pm2 flush
pm2 start <app>
pm2 stop <app>
pm2 restart <app>
- The command provides autocompletion for the available commands and apps
- Requires admin permissions
start <interval>
- Starts monitoring the system with the given interval in seconds
stop
- Stops monitoring the system
update
- Forces an early update of the monitor embeds
- Requires admin permissions
Returns system information:
CPU Usage
Memory Usage
Uptime
- Requires admin permissions
- Open two terminals
- Start the TypeScript watcher with
yarn watch
in one terminal - Start the bot with
yarn dev
in the other terminal - Register new commands manually with
yarn register