Skip to content

AlwaysMOTD

Thank you for your purchase!

Important

This addon only adds some files to your nodes. Because of that, these steps need to be done on your Wings server, not the panel.

Installation

Step 1: Create Directory & Upload Files

Create the AlwaysMOTD directory and upload the files:

bash
sudo mkdir -p /opt/alwaysmotd
bash
cd /opt/alwaysmotd

Upload all AlwaysMOTD files to /opt/alwaysmotd using SFTP or your preferred file transfer method.

Step 2: Install Dependencies

Install Node.js and project dependencies:

bash
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -
bash
sudo apt install nodejs iptables
bash
cd /opt/alwaysmotd && npm install

Step 4: Open Ports (Optional)

If you use UFW (Standard on an Pterodactyl installation) or another firewall, you got to open the following ports:

4001, 4002, 4003 and 4004.

If you use UFW, run this command:

bash
ufw allow 4001 && ufw allow 4002 && ufw allow 4003 && ufw allow 4004

Step 5: Configure

Edit config.yml with your Pterodactyl API keys and port range:

bash
nano /opt/alwaysmotd/config.yml
SettingDescription
Panel URLYour Pterodactyl panel URL
API KeyApplication API key with server read permissions
Port RangeRange of ports to monitor for offline servers
MOTD MessageCustom message to display when server is offline
Max PlayersFake max players to show in server list

Step 6: Run the Service

Install PM2 and start the service:

bash
sudo npm install -g pm2
bash
cd /opt/alwaysmotd && sudo pm2 start index.js --name "alwaysmotd"
bash
sudo pm2 startup && sudo pm2 save

Managing AlwaysMOTD

CommandDescription
sudo pm2 statusCheck status
sudo pm2 logs alwaysmotdView logs
sudo pm2 restart alwaysmotdRestart AlwaysMOTD (Apply changes in config.yml)
sudo pm2 stop alwaysmotdStop AlwaysMOTD

Need Help?

Join our Discord Server and open a ticket for support.

© 2025 AlwaysMOTD - BuiltByOtte. All rights reserved.

Last updated: