A TypeScript-based system for monitoring server status and sending notifications through Discord.
This project consists of two main components:
- Server Connector - Runs on target servers to monitor their status
- Discord Bot - Communicates with connectors and provides status updates in Discord
-
Navigate to the server-connector directory:
cd server-connector -
Install dependencies:
npm install -
Build the project:
npm run build -
Create a
.envfile with your configuration:PORT=4120 SECURE_MODE=false -
Start the server:
npm start
The server will be accessible at http://your-server-ip:24444/status
-
Navigate to the discord-bot directory:
cd discord-bot -
Install dependencies:
npm install -
Build the project:
npm run build -
Create a
.envfile with your configuration:DISCORD_TOKEN=your_discord_token_here CLIENT_ID=your_client_id_here GUILD_ID=your_guild_id_here CHECK_INTERVAL=300000Get these values from the Discord Developer Portal.
-
Start the bot:
npm start
/status- Check the status of all monitored servers/add-server name:Server URL:http://server-ip:port- Add a new server to monitor
For development mode with auto-reload:
npm run dev
MIT