Agentbot setup for you're vps

Опубликовано: 17 Май 2026
на канале: Moofietsendiefdevelopment
0

This is an extra video of how to setup the agentbot on an vps


some pm2 command that you will need
All PM2 Commands:
Managing the Bot:
pm2 start src/index.js --name "discord-bot" # Start the bot
pm2 restart discord-bot # Restart the bot
pm2 stop discord-bot # Stop the bot
pm2 delete discord-bot # Remove the bot from PM2
pm2 save # Save current configuration
Logs & Monitoring:
pm2 logs discord-bot # View live logs
pm2 logs discord-bot --lines 100 # Show last 100 lines
pm2 logs discord-bot --err # Only errors
pm2 flush discord-bot # Clear logs
Status & Info:
pm2 list # List all processes
pm2 status # Status of all processes
pm2 info discord-bot # Detailed info
pm2 monit # Real-time monitoring
Auto-start on Reboot:
pm2 startup # Enable auto-start
pm2 save # Save current processes
pm2 unstartup # Disable auto-start
Completely Removing the Bot:
pm2 stop discord-bot # 1. Stop the bot
pm2 delete discord-bot # 2. Remove from PM2
pm2 save # 3. Save updated configuration
Removing All PM2 Processes:
pm2 delete all # Remove EVERYTHING
pm2 kill # Stop PM2 daemon

Done! 🚀