A Discord bot based on discord.js
that sends the status of the Lavalink node used in music bots to play music.
- Fetch and display the status of the connected Lavalink node.
- Show useful information like node uptime, players connected, and memory usage.
- Easy to configure and deploy.
- Node.js v16 or higher
- npm
- A Discord bot token
- A running Lavalink server
-
Clone the repository:
git clone https://github.com/ItzRandom23/Lavalink-Status.git cd lavalink-status-bot
-
Install dependencies:
npm install
-
Update the
config.js
file with the following code to use environment variables:module.exports = { token: process.env.DISCORD_TOKEN || "", // Your bot token channelId: process.env.CHANNEL_ID || "", // Channel Id you want to send the message nodes: [ { host: process.env.LAVALINK_HOST || "", // Lavalink IP password: process.env.LAVALINK_PASSWORD || "", // Lavalink Password port: process.env.LAVALINK_PORT || 443, // Lavalink Port retryDelay: 300000, retryAmount: 25, identifier: process.env.LAVALINK_IDENTIFIER || "", // Name of your lavalink secure: false, }, ], };
-
Start the bot:
npm start
-
Invite the bot to your Discord server before starting it up.