Skip to content

A music bot for discord, it's written in python using the py-cord package and pomice

License

Notifications You must be signed in to change notification settings

Dragons-Dev/Music-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the music only bot used on the Dragons Discord

Features

  • play tracks from youtube, spotify and soundcloud
  • loop your searched tracks
  • volume controll
  • player dashboard
  • active dev

Requirements

Initial setup

Configuring Lavalink Servers for Discord Bots

This JSON file is a configuration file for a Discord bot that connects to Lavalink servers. The key represents the name of the node which is used only in the program. The values correspond to their respective variables used in the program.

Usage To set up the Lavalink servers in the configuration file, follow these steps:

  1. Open the JSON file in a text editor.
  2. Add a new node to the JSON file by using the following format:
"node_name": {
    "HOST": "ip_address_of_the_Lavalink_server",
    "PORT": port_number_of_the_Lavalink_server,
    "PASSWORD": "password_for_the_Lavalink_server",
    "SECURE": boolean_value_for_secure_connection,
    "SPOTIFY_ID": "spotify_client_id",
    "SPOTIFY_SECRET": "spotify_client_secret"
}
  1. Replace the values in the above format with the actual values of your Lavalink servers and Spotify credentials.
  2. Save the file.

Once the configuration file is set up, the Discord bot will use the specified Lavalink servers to play audio.

Configure the config.py

from pathlib import Path

DISCORD_TOKEN = "" # here you enter your discord token you got under 
                   # https://discord.com/developers/applications

DBPATH = Path("./data/main.sqlite")
DBFOLD = Path("./data/")
GUILDS = []        # here you enter the guild ids you want the bot to work on

About

A music bot for discord, it's written in python using the py-cord package and pomice

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages