mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-01 14:38:48 +00:00
4.6 KiB
4.6 KiB
Cadence - A free Discord music and audio bot
🎶 A free music and audio bot for Discord. No locked functionality, free forever. Open source!
Adding the bot 🤖
To add the bot to your Discord server, click here. This will invite the bot to your Discord server.
Once the bot has joined your Discord server, there is no additional configuration. Execute the /help command to view a list of commands to use.
Hosting the bot yourself 🔓
This bot is open-source, and if you want to host it yourself, you can do so by following the steps below.
- Install Node.js v18.16 LTS.
- Install FFmpeg latest release build.
- After cloning this repository, install dependencies with
npm install. If you get an error, try usingnpm install --legacy-peer-depsinstead, which should resolve the issue. - Create and configure the
config.jsdocument in/src/config.jswhich contains configurable options and customization for the bot. See the/src/config_example.jsfor an example. - Setup your
.envfile in the root directory to configure bottokenandclientId, which you get from Discord developer portal. See the.env.examplefile in root directory to see example. - Deploy slash commands via Discord API by running
npm run deploy. This is required to make the commands accessible for Discord servers. - Run
npm startto start the bot. If everything is configured and setup correctly, the bot should be online and ready to use. You will need to invite the bot to a server, see Adding your bot to servers article for help.
Additional information:
- You can use
npm run deploy-prettyandnpm run start-prettyto get formatted, colorized output to console instead of JSON format. For this to work, you need the npm packagepino-prettyinstalled,npm install pino-pretty -gto install it globally. - Logs are stored in
/logsdirectory, you can configure the logging level to file and console underloggerOptionsin/src/config.js. - For production use, I recommend using something like
pm2to manage the process and automatically restart it if it crashes. Here's a simple setup forpm2:- Install
pm2globally:npm install pm2 -g. - Start the bot with
pm2 start ./src/index.js --name "Cadence". - Save the process list with
pm2 save. - To view logs with pino-pretty, run
pm2 logs 0 --out --raw | pino-pretty. Note: Does not work well in Windows PowerShell, use command prompt (cmd) to view logs withpino-prettyusing same command if you are usingpm2.
- Install
Get help and support 🛟
If you experience any issues, please open an issue on this repository or join the Discord support server for the Cadence bot.
Credits and acknowledgments 🎉
This project is made possible by using discord.js and discord-player.