1.0.2 • Published 2 years ago

djs_handler_package v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

discord.js-v13_handler

A discord.js handler v13, easy to use.

Setup

  const {Bot, Command} = require(`discord.js_handler`)
  const bot = new Bot("TEST", "YOUR_BOT_TOKEN", "YOUR_PREFIX")
  bot.login("TEST")
  bot.readyMessage("IM READY!")
  bot.setCooldown("10s", "TEST")

Command run

  new Command({
      name: "test",
      description: "a test",
      aliases: ["t"],
      run: ({message /*client, args, Discord*/}) => {
          message.reply(`Test!`)
      }
  })

Full code

  //setup
  const {Bot, Command} = require(`discord.js_handler`)
  const bot = new Bot("TEST", "YOUR_BOT_TOKEN", "YOUR_PREFIX")
  bot.login("TEST")
  bot.readyMessage("IM READY!")
  bot.setCooldown("10s", "TEST")

   //command
  new Command({
      name: "test",
      description: "a test",
      aliases: ["t"],
      run: ({message /*client, args, Discord*/}) => {
          message.reply(`Test!`)
      }
  })