LavaMusic Discord Bot Logo

LavaMusic Discord Bot

0

Add LavaMusic bot to your server for seamless music streaming. Enjoy powerful music commands with this Discord Bot. Invite LavaMusic today!

0 upvotes in July

LavaMusic Discord Bot Described:

Lavamusic is a Discord music bot that uses Discord.js, Shoukaku, and TypeScript

<center><img src=“https://capsule-render.vercel.app/api?type=waving&color=gradient&height=200&section=header&text=Lavamusic&fontSize=80&fontAlignY=35&animation=twinkling&fontColor=gradient” /></center>

Version
Contributors
Forks
Stargazers
Issues
Support Server
MIT License
Run on Repl.it
Remix on Glitch

<!-- PROJECT LOGO -->
<br />
<p align=“center”>
<a href=“https://github.com/appujet/lavamusic”>
<img src=“https://cdn.discordapp.com/avatars/875635121770889257/d427591ca92c868114fbdd9dca436086.png?size=512” alt=“lavamusic” width=“200” height=“200”>
</a>

<h1 align=“center”>Lavamusic</h1>
<p align=“center”>Lavamusic is a Discord music bot that uses Discord.js, Shoukaku, and TypeScript.
<br />
<br />
<a href=“https://discord.com/oauth2/authorize?client_id=977742811132743762&scope=bot+applications.commands&permissions=8”>Invite Lavamusic</a>
·
<a href=“https://github.com/appujet/lavamusic/issues”>Report Bug & Request Feature</a>
</p>
</p>

🔥 Unique Features
  • User-friendly and Easy to Use
  • Highly Configurable
  • Customizable Prefix
  • Multilingual support
  • Hybrid Command Handling (Slash and Normal Commands)
  • Developed using TypeScript and Discord.js v14
  • Advanced Music System
  • Powerful Search Engine
  • 12 + Music Filters
  • 24/7 Music Playback
  • Playlist commands
  • Music channel system
🎶 Support Sources
🔍 Default Sources
🔌 Plugin Sources: (Require: LavaSrc and Skybot Plugin)

Note: You need to install the plugins to use these sources

To Setup a Lavalink server on Windows, Linux, or Replit, Click Here.

Need Help with plugins? Join our Discord Server and ask for help in the #support channel
🔧 Requirements

Before starting with the installation, you need to have the following:

Optional
🚀 Installation from source
  1. Clone the Lavamusic repository:
git clone https://github.com/appujet/lavamusic.git
  1. Change to the Lavamusic directory:
cd lavamusic
  1. Install the required packages:
npm i
  1. Set up your environment variables:
    Create a .env file in the root directory of your project with the following variables:
    or you can use the .env.example file
TOKEN= "" # Your bot token.
CLIENT_ID= "" # Your bot's client ID (If this value is left blank, bots cannot be invited using /invite or /about commands.).
PREFIX= "!" # Your prefix.
OWNER_IDS= ["",""] # Your discord id (You can add multiple ids.).
GUILD_ID= "" # Your server ID (If you want to use the bot for a single server).
PRODUCTION= "true" # true for production.
TOPGG= "" # Your Top.gg API key. Obtain this from https://top.gg
KEEP_ALIVE= "false" # true for keep alive in https://replit.com
LOG_CHANNEL_ID= "" # If you enter this, you will be able to receive the status of Lavalink nodes and guild join/leave logs through the corresponding channel.
LOG_COMMANDS_ID= "" # The channel ID where command usage logs will be sent.
BOT_STATUS= "online" # Your bot status (online, dnd, idle, invisible or offline).
BOT_ACTIVITY_TYPE= 0 # Activity type is a number from 0 to 5. See more here: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
BOT_ACTIVITY= "Lavamusic" # Your bot activity.
DATABASE_URL= "" # Your database url (If you want to use sqlite, then you can leave it blank.).
AUTO_NODE= "false" # true for auto node. It is given from lavainfo-api (https://lavainfo-api.deno.dev).
LAVALINK_URL= "localhost:2333" # Your Lavalink url (If auto node is true, then you can leave it blank).
LAVALINK_AUTH= "youshallnotpass" # Your Lavalink password (If auto node is true, then you can leave it blank.).
LAVALINK_NAME= "Lavamusic" # Your Lavalink name (If auto node is true, then you can leave it blank.).
LAVALINK_SECURE= "false" # true for secure Lavalink (If auto node is true, then you can leave it blank.).
MAX_PLAYLIST_SIZE= "100" # Max playlist size.
MAX_QUEUE_SIZE= "100" # Max queue size.
  1. Generate the Prisma client:
npm run db:push
  1. Run the migrations (Only if you want to migrate your database)
npm run db:migrate
  1. Run the bot:

If you are using Windows, click run.bat on Windows explorer.

npm start
  1. Invite the bot to your server:

Generate an invite link for your bot and invite it to your server using the <a href=“https://discord.com/developers/applications”>Discord Developer Portal</a> or using <a href=“https://discordapi.com/permissions.html”>Permissions Calculator.</a>

🚀 Installation using Docker Compose

This section assumes you have Docker and Docker Compose installed and running correctly.
Download the docker-compose.yml file in a separate folder like lavamusic.
Edit docker-compose.yml and make sure to set the following variables:
Your .env file should look like this or you can use the .env.example file.

TOKEN="." # Your bot token and remember, don't show everyone your bot token
PREFIX="!" # Your prefix
OWNER_IDS=["859640640640640640","859640640640640640"] # Your discord id, you can add multiple ids
GUILD_ID="859640640640640640" # Your server ID (if you want to use it for a single server)
PRODUCTION="true" # "true" for production

For more information how to fill all the variables go to this page.
You do not need to edit anything like the LAVA_LINK_URL, LAVA_LINK_AUTH, LAVA_LINK_NAME, LAVA_LINK_SECURE, DATABASE_URL, and the ports unless you know what you’re doing.
After saving your changes you can open a terminal and go to the same location as the docker-compose.yml file. Then run the following:

docker-compose up -d

The above command will start all your services and your bot should be up and running!
To update, you only have to type the following:

docker-compose up --force-recreate --build -d
image prune -f

You can automate this by using Watchtower. The following should be sufficient:

docker run --detach \
    --name watchtower \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --restart on-failure \
    containrrr/watchtower --cleanup

Do note that the bot will restart itself to update to the latest!

🔗 Useful Links
📝 Tutorial

A tutorial has been uploaded on YouTube. Watch it by clicking here.

📜 Contributing

Thank you for your interest in contributing to Lavamusic! Here are some guidelines to follow when contributing:

  1. Fork the repository and create a new branch for your feature or bug fix.
  2. Write clean and concise code that follows the established coding style.
  3. Create detailed and thorough documentation for any new features or changes.
  4. Write and run tests for your code.
  5. Submit a pull request with your changes.
    Your contribution will be reviewed by the project maintainers, and any necessary feedback or changes will be discussed with you. We appreciate your help in making Lavamusic better!
🔐 License

Distributed under the GPL-3.0 license. See LICENSE for more information.

☕ Donate

Do you like this project? Support it by donating!
ko-fi

👥 Contributors

Thanks go to these wonderful people:
<a href=“https://github.com/appujet/lavamusic/graphs/contributors”>
<img src=“https://contrib.rocks/image?repo=appujet/lavamusic” />
</a>

Check out the home page for the full Discord Bot List.

Frequently Asked Questions

How do I add LavaMusic Discord Bot to my server?

You can add LavaMusic to your Discord Server by pressing 'Add LavaMusic Discord Bot' on this page.

More Discord Bots

Pokétwo Discord Bot Banner
Pokétwo Discord Bot Logo
3,093
1.5M

The Pokémon experience, on Discord. Catch, level, and evolve Pokémon, trade and battle with friends, and more. All free and open source.
Dank Memer Discord Bot Banner
Dank Memer Discord Bot Logo
1,541
9.1M

Meet the largest in-app indie game on Discord. A currency and fishing game for catching creatures, collecting items, robbing your friends, taking care of pets, building skills, and more!

Tags

Music

Information

Prefix: . Or /
Servers: unknown
Users: unknown
Created by: appujet#0
Short link: discord.ly/lavamusic