dismusic

Music cog for discord bots. Supports YouTube, YoutubeMusic, SoundCloud and Spotify.

Installation

python3 -m pip install dismusic

Usage

from discord.ext import commands

bot = commands.Bot(command_prefix='..')

bot.lavalink_nodes = [
    {"host": "lavalink.eu", "port": 2333, "password": "Raccoon"}
]

# If you want to use spotify search
bot.spotify_credentials = {
    'client_id': 'CLIENT_ID_HERE', 
    'client_secret': 'CLIENT_SECRET_HERE'
}

bot.load_extension('dismusic')
bot.run('TOKEN')

Commands

connectConnect to vc
disconnectDisconnect from vc

playPlay a song or playlist
pausePause player
resumeResume player

seekSeek player
nowplayingNow playing
queueSee queue
volumeSet volume
loopLoop song/playlist

Filter commands coming soon.

Lavalink Configs

# No SSL/HTTPS
{"host": "lavalink.eu", "port": 2333, "password": "Raccoon"}
{"host": "losingtime.dpaste.org", "port": 2124, "password": "SleepingOnTrains"}
{"host": "lava.link", "port": 80, "password": "dismusic"}
{"host": "lavalink.islantay.tk", "port": 8880, "password": "waifufufufu"}

Join Discord For any kind of help