Note: This branch supports only Lavalink v4. Lavalink v3 no longer maintained so please update your Lavalink
-
Ensure NodeJS v18 or Later:
- Make sure your NodeJS version is 18 or later.
-
Clone the Repository:
- Clone the repository or download the ZIP file:
git clone https://github.com/LewdHuTao/Lavalink-Status.git
-
Configure the Bot:
- Fill in the config.js file with your Lavalink Setting, Bot Token, and Channel ID where you want to send the status updates.
-
Install Required Packages:
- Run the following command in your console:
npm install ## or yarn install
-
Start the Bot:
- Use one of the following commands to start the bot:
npm run start ## or node .
-
Report Issue:
- If you encounter any issues or the code doesn’t work, please create an issue.
- Preview: https://lavalink.shittybot.xyz
-
Enable Web Monitor:
- Set
webMonitor
totrue
in the config.js file.
- Set
-
Access the Web Monitor:
- Open your browser and navigate to
http://localhost:3000
.
- Open your browser and navigate to
-
Custom Domain:
- You can use a custom domain and set it up using services like ngrok, Cloudflare Tunnel or whatever service you like that can asign custom domain.
You can embed these badge icons in any .md file to show your node status or node players.
- Preview
- Endpoints:
- Status Icon enpoint:
GET /api/v1/badge/status/:nodeIndex
Replace :nodeIndex with the index of the node you want to retrieve the status for.
- Players Icon enpoint:
GET /api/v1/badge/players/:nodeIndex
Replace :nodeIndex with the index of the node you want to retrieve the status for.