Skip to content

SimpleDiscordBotsJS/Discord-DB-Template-Bot

Repository files navigation

Discord-DB-Template-Bot

It's a template for discord bot

Advantages:

  • It's a template...
  • Handler's
  • DJS 14
  • MongoDB

Instructions

Customizing the Config.json File

{
   "BOT_TOKEN": "Enter_discord_bot_token",
   "DEV_ID": "Enter_your_discord_id",
   "DATABASE_URL": "Enter_mongoDB_database_url",

   "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.