Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

A discord.js bot template that includes a command handler which has aliases and cooldowns.

Notifications You must be signed in to change notification settings

KOOL13/discord.js-Bot-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord.JS-Bot-Template

A discord.js bot template that includes a command handler which has aliases and cooldowns.

Note: This uses discord.js version 12, which is outdated. This repository will no longer be updated.

How To Use

Setup

  1. Download the files or git clone it.
  2. Install discord.js by typing npm install discord.js in the console/terminal.
  3. Go to config.json and put your values according to your bot.
{
  token: 'YOUR TOKEN HERE',
  prefix: 'YOUR PREFIX HERE'
}
  1. (Optional) Go to index.js and customize the ready messasge and bot status.

Creating Commands

  1. Create a .js file inside a sub-folder inside the commands directory. (If it's not in a sub-folder it will error)
  2. Use the following format:
module.exports = {
  name: 'command-name',
  aliases: ['alias1', 'alias2', 'etc'],
  cooldown: 1000, //Time should be in milliseconds
  async run (client, message, args) {
    //Your code here
  }
}

About

A discord.js bot template that includes a command handler which has aliases and cooldowns.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published