A simple Python music bot for Discord using Lavalink and slash commands that also supports playing songs from Spotify. You can make use of context menus (right click on user -> apps -> play from Spotify) to add songs to queue through Spotify presence of users. You can also use play
option in context menu to play
and play-next
(right click on message containing name of a song -> apps -> play/play-next). Primarily was made for use in small servers of me and my friends after Groovy died. Bot is very minimal, easy to setup and simple enough to host.
- Slash and Prefix commands
- disconnect
- play (Spotify/Youtube playlists and Youtube track search)
- play-next
- playing
- queue
- skip
- pause
- unpause
- search (interaction dropdown)
- back
- jump
- shuffle
- help
- saved queues create
- Context Menu options (Right Click -> Apps)
- play
- play-next
- play-from-spotify (add song to queue from user Spotify presence)
- Rewrite code with better abstractions.
- Beautify using interactions and embeds.
- Install all packages in
requirements.txt
. - Setup a lavalink node or use any of publicly available lavalink node and make a
config.json
file from thesample-config.json
template. You can use your own 18 digit discord user id for "owners". You will also need your own Spotify API key. Along with it you can add some priority guild ids inguild_ids
so slash commands will instantly sync with those guilds. - The
config.json
file should be placed in base directory of bot along withbot.py
. After this is done simply executebot.py
.
Slash commands can take some time to get registered globally. Prefix commands can be used meanwhile but recommended way to use is through slash commands and context menus.