Simple discord music bot that works with youtube-explode and ffmpeg. Written in .NET 6
Stable for use on a small server
- Support for easy localization
- Playing Music from YouTube URL
- Playing Playlists from YouTube URL
- Queue
- Searching youtube videos from user request
- Skipping
- Volume and speed settings (in the form that allows discord and ffmpeg)
- Reverse (takes a long time to run at the moment)
- Blacklist
- Bugs
- Restart command in case something breaks :)
You can change prefix in config.yml
- !play [Youtube URL] - starts playing audio from youtube url
- !play [Search string] - starts playing audio from first video in youtube search
- !playlist [Youtube URL] - adds all video from playlist to queue
- !queue - queue
- !volume [from 0 to 10] - default is 1. Not sure how it works with discord
- !speed [from 0.5 to 2] - default is 1.
- !loop - loop
- !reverse - playing audio in reverse. Works really slow
- !skip - skipping current track
- !restart - restart program. Not working with linux screen
- Download
- Paste you bot token to config.yml
- Start and use
- Install libopus, libsodium and ffmpeg
sudo apt install libsodium-dev libopus-dev ffmpeg -y
- Download
- Paste you bot token to config.yml
- Now you can start the bot with screen, but then the !restart command will shutdown the bot without restarting. To avoid this, bot must be started as service.
/etc/systemd/system/bb.service
[Unit]
Description=Bugy Bot
[Service]
User=penguin
WorkingDirectory=/home/penguin/bcm
ExecStart=/home/penguin/bcm/BugyBot
Restart=always
[Install]
WantedBy=multi-user.target
Do not forget to paste the username and path to directory and executable
Starting bot service
sudo systemctl bb start
Enable autostart with system
sudo systemctl bb enable