A Discord bot that automatically plays NTS radio in voice channels.
- Install Node.js and npm on your server:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs- Install PM2 globally:
sudo npm install -g pm2- Clone this repository and install dependencies:
git clone <your-repo-url>
cd ntsbot
npm install- Start the bot with PM2:
pm2 start ntsbot.js --name "ntsbot"- View logs:
pm2 logs ntsbot - Monitor processes:
pm2 monit - Stop bot:
pm2 stop ntsbot - Restart bot:
pm2 restart ntsbot - Set up PM2 to start on system boot:
pm2 startup(follow the instructions it provides) - Save the current PM2 process list:
pm2 save
Make sure to:
- Update the Discord bot token in
ntsbot.js - Ensure all dependencies are installed: Node.js, FFmpeg, Opus
If you encounter audio issues:
- Make sure FFmpeg is installed:
sudo apt-get install ffmpeg - Check PM2 logs for errors:
pm2 logs ntsbot - Ensure the bot has proper permissions in Discord
This project is open source and in active development. By using this bot, you agree that:
- The service is provided "as is" without warranty of any kind.
- We are not responsible for any issues that may arise from using this bot.
We respect your privacy.
- We do not collect any personal user data.
- This is an open source project intended for educational and personal use.