Skip to content

Simple music bot for Discord server

License

Notifications You must be signed in to change notification settings

SimpleDiscordBotsJS/Discord-Music-Bot

Repository files navigation

Discord-Music-Bot

This is a music bot for your Discord server.

Advantages:

  • I commented everything out, so it's easy to figure it out
  • All setup in one file
  • Checking for the server (It is necessary so that when using the bot on several servers, no crashes occur)

Instructions

Discord Bot:

  • Create application
  • Add a bot to it (Bot section)
  • In the same place where the bot was added, enable "PRESENCE INTENT" and "SERVER MEMBERS INTENT" (Without this, the bot will not work)
  • Add a bot to the server (here it is already)

Customizing the Config.json File

{
   "BOT_TOKEN": "Enter_discord_bot_token",

   "DEBUG_EVENT": false
}

The bot token can be copied in the Bot section of your application

To run locally, you need Node.JS

Start

node .

pm2

Installation pm2

Install pm2

npm install --global pm2

Startup

Starting

pm2 start . --name "Code bot" --watch

Base commands for Neophyte's

pm2 list - show all process

pm2 stop (id) - stopping process

pm2 logs (. or id) - show logs

more in pm2 -h or this and Google 😉


If you want to use nodemon and pm2


Contribution

​ Please make sure to read the Contributing Guide before sending an issue or making a pull request.