Skip to content

A bot based on discord.js which sends the status of the lavalink node which is used in music bots to play music

Notifications You must be signed in to change notification settings

ItzRandom23/Lavalink-Status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A bot based on discord.js which sends the status of the lavalink node which is used in music bots to play music

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published