Where the audio comes from
Bothosting’s discord.js music starter needs access to a compatible Lavalink server. The bot handles Discord commands and voice state, while Lavalink resolves media and handles audio playback. You can connect the bot to an existing Lavalink service you control or allocate a separate Lavalink deployment on an eligible paid plan.
The two processes have separate requirements. Hosting both on Bothosting takes two deployment slots. The Lavalink template alone requires at least 512 MB of memory, before counting the bot. Spark has one slot and 256 MB, so it cannot host both parts. Check the account pools against your combined allocation.
Give the bot the audio node’s address
Use the Discord music starter and save the Discord application token under BOT_TOKEN. Set LAVALINK_HOST to the address and port reachable from the bot, and put the node’s password separately in LAVALINK_PASSWORD. The host field takes a server address. A track URL belongs in the play command.
For your own same-node service, use the connection details supplied for that node. For an external TLS service, match the HTTPS scheme to its listener. Restart the bot after changing Variables. For credential updates, follow the runtime secrets guide.
Test one track in a quiet voice channel
- Join a voice channel in a test guild. Check that the bot can connect and speak there.
- Use
/playwith a track page you have permission to play, such as a Bandcamp track URL. The managed Lavalink configuration resolves supported music services and disables direct audio-file URLs. If the bot says the music server is unavailable, check the address, password and network reachability. - If the node responds but cannot resolve that track, check which sources that node supports and try another track from an enabled service. Once you hear audio, use
/stopand verify the bot leaves the channel.
If the command replies but the channel stays silent, follow the Lavalink playback troubleshooting guide.