Files
cadence-discord-bot/README.md
T
Marius Begby 6406df6d3e Update README.md
Add Contributors section for workflow
2023-08-01 07:41:22 +02:00

4.6 KiB


Cadence - A free Discord music and audio bot

Cadence icon

🎶 A free music and audio bot for Discord. No locked functionality, free forever. Open source!

Add Cadence Discord bot  Cadence Discord support server  Cadence bot release  Cadence bot license

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.

  1. Install Node.js v18.16 LTS.
  2. Install FFmpeg latest release build.
  3. After cloning this repository, install dependencies with npm install. If you get an error, try using npm install --legacy-peer-deps instead, which should resolve the issue.
  4. Create and configure the config.js document in /src/config.js which contains configurable options and customization for the bot. See the /src/config_example.js for an example.
  5. Setup your .env file in the root directory to configure bot token and clientId, which you get from Discord developer portal. See the .env.example file in root directory to see example.
  6. Deploy slash commands via Discord API by running npm run deploy. This is required to make the commands accessible for Discord servers.
  7. Run npm start to 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-pretty and npm run start-pretty to get formatted, colorized output to console instead of JSON format. For this to work, you need the npm package pino-pretty installed, npm install pino-pretty -g to install it globally.
  • Logs are stored in /logs directory, you can configure the logging level to file and console under loggerOptions in /src/config.js.
  • For production use, I recommend using something like pm2 to manage the process and automatically restart it if it crashes. Here's a simple setup for pm2:
    • Install pm2 globally: 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 with pino-pretty using same command if you are using pm2.

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.

Contributors