Skip to content

ApenJulius/DiscordBotTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Discord.js Template

This is a basic template for Discord.js created to streamline development and for educational purposes.

For navigating discord.js docs, use:

https://discord.js.org/#/docs/discord.js/main/general/welcome

If you need explanations of each part, use:

https://discordjs.guide/#before-you-begin

Quickstart

  1. Download this project
  2. Run npm i in VSCode terminal
  3. Go to your .env file and create corrections
BOT_TOKEN = "YOUR_BOT_TOKEN"
clientId = "YOUR_BOT_ID"
guildId = "YOUR_DISCORD_SERVER_ID"
  1. Run npm run dev-start in VSCode (Please remember to click ctrl+c in terminal to end your bot)
  2. Write your code! AND REMEMBER TO SAVE WITH ctrl+s. Pro tip: VSCode will display a circle on files that are NOT saved

Scripts

To run tests, run the following command

  npm run test

To start the bot with nodemon for development, run the following command:

  npm run dev-start

To start the bot normally, run the following command:

  npm start

To deploy application commands ( / ) to a server, run the following command:

  npm run deploy

To deploy application commands ( / ) globally, run the following command:

  npm run deploy-global

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published