Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 1.9 KB

README.md

File metadata and controls

66 lines (47 loc) · 1.9 KB

A Discord bot based on discord.js that sends the status of the Lavalink node used in music bots to play music.

Features

  • 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.

Prerequisites

  • Node.js v16 or higher
  • npm
  • A Discord bot token
  • A running Lavalink server

Installation

  1. Clone the repository:

    git clone https://github.com/ItzRandom23/Lavalink-Status.git
    cd lavalink-status-bot
  2. Install dependencies:

    npm install
  3. 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,
        },
      ],
    };

Usage

  1. Start the bot:

    npm start
  2. Invite the bot to your Discord server before starting it up.

Example Output

preview)