FireMusic is a Discord music bot written in Node.js that allows you to play music in your Discord server. It utilizes the Discord.js library for interacting with the Discord API and requires a Discord Bot Token and Client ID.
-
Clone this repository:
git clone https://github.com/yourusername/firemusic-bot.git
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory of the project and add the following:DISCORD_TOKEN=your_discord_bot_token CLIENT_ID=your_client_id
Replace
your_discord_bot_token
andyour_client_id
with your Discord Bot Token and Client ID.
-
Start the bot:
npm start
-
Invite the bot to your Discord server using the following link:
https://discord.com/oauth2/authorize?client_id=your_client_id&scope=bot&permissions=your_permissions
Replace
your_client_id
with your bot's Client ID andyour_permissions
with the necessary bot permissions. -
Use the bot commands to play music in your server.
FireMusic uses Lavalink to handle audio playback. Lavalink is a standalone audio sending node based on Lavaplayer and JDA-Audio. It allows for smooth and efficient audio playback in Discord bots.
Setup Lavalink.
-
Update your
lavaConfig.js
file to include Lavalink configuration:const nodes = { host: "loox.kreikels.space", port: 27000, authenticaion: "betterVenusBot", secure: false, };
Replace
your_lavalink_password
with the password you set in theapplication.yml
file. -
Ensure that your bot code connects to the Lavalink node using these environment variables.