JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 100
  • Score
    100M100P100Q30858F
  • License MIT

A package to manage all discord bot Files

Package Exports

  • handler.dts
  • handler.dts/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (handler.dts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

v

Introduction

handler.dts is a powerful tool designed to simplify the management of Discord.js bot files. It aims to enhance productivity by reducing the amount of time and code required to handle various aspects of a Discord bot, while also improving performance.

Installing

 $ npm init
 $ npm i discord.js
 $ npm i handler.dts
You can Handel Files with this package

SetUp

const { Client } = require('discord.js');
const { Application } = require('handler.dts');

const client = new Client({
    intents: 3276799
});

new Application(client, {
    commands: __dirname.concat('/commands'),
    events: __dirname.concat('/events'),
});

client.Application.build();

client.login('Token');

commands Setup

const { Message } = require('discord.js');
const { CommandBuilder } = require('handler.dts');

CommandBuilder.$N`ping`.$M(Execution);

/**
 * @param {Message} message 
 */
function Execution(message) {
    message.replyNoMention('pong 🏓')
}