Skip to content

ductuanxt2/discordjs-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord.js Bot Template

Before doing anything, you need to:

  • Visit Discord Developer Portal, create an application, turn on the Bot feature, and invite its to your server.
  • Install Node.js, the version must be atleast 12.x or above.
  • Have a place to host your bot.
    • You can use VSC to code your bot but it won't run forever.
    • Here is some free host that you can use: Glitch.com, Repl.it, Heroku
    • I wouldn't recommend using a free host, they have limitations.

After you finished all of that:

  • Put these code into your host.
  • Go to config.js and change them.
  • In your terminal/console, run npm install and npm start. (Only if your host didn't do it for you already).

To run your bot:

  • Open the terminal/console and type in node . or node <your main file name>.
  • Or just click start if your host have one.

And you are done!

  • Now you can customize your bot and add more command/event to it.

Releases

No releases published

Packages

No packages published