A reliable 24/7 discord bot that streams from ilovemusic.de
by default, including any supported direct stream links you provide manually.
If you use a service like centova, shoutcast, or icecast and the stream doesn't work, try re-configuring your stream or using a different streaming format.
Node.js
v18.14.0 or aboveFFmpeg
(version depends on OS by compatibility, prefer latest)- Minimum 256MB of RAM
Note: if you can't install ffmpeg, try static binaries from npm like ffmpeg-static
, @ffmpeg-installer/ffmpeg
, etc. but keep in mind that they offer limited functionality.
- Player controls (button interactions)
- Controls can be restricted to broadcasters
- Auto-join (or reconnect) voice/stage channel
- Autoplay next radio channel on failure (like a playlist)
For a community that just wants a 24/7 radio, the following limits apply:
- Single voice/stage channel (cannot change when the bot is in operation)
- Cannot have more than 75 streams (inclusive of ilovemusic streams if enabled)
- Stage channels are also supported, but not recommended; also, the bot must be a stage moderator
The bot can be easily configured from the config.ts
file. If you are about to host it on a vps that supports starting from a bash file you can use the start.sh
file (note: you might have to modify these commands if your vps has certain restrictions). If not, you need to run the following commands in a shell:
npm install
- to install necessary dependenciesnpm run build
- to build the botnpm start
- to start the bot
If you get any errors mentioning node-gyp
, follow the steps in this node-gyp
repository for your system, delete node_modules
and package-lock.json
file and run the above commands again.