chars-client

1.1.0 • Public • Published

Chars Client

Build Bots Fast With An Easy To Use Package


Description

A package that provides you with a structure to make a discord bot with a fully functional event handler and slash commands.

Installation

npm i chars-client

How To Use

// index.js

const CommandClient = require('chars-client');

const client = new CommandClient({
  token: '', // Enter your bots token
  commandFolder: '', // Enter your command folder name (defults to commands)
  eventFolder: '', // Enter your event folder name (defults to events)
});

client.start();
// events/ready.js

module.exports = {
  name: 'ready',
  run(client) {
    console.log(`Logged in as ${client.user.tag}`);
  },
};
// commands/ping.js

const { SlashCommandBuilder } = require('@discordjs/builders');

module.exports = {
  data: new SlashCommandBuilder()
    .setName('ping')
    .setDescription('Ping command'),
  async execute(interaction) {
    await interaction.reply('Pong!');
  },
};

Info

You can find your discord bot token here

Changelog

- Added Event Categories

Help

Readme

Keywords

none

Package Sidebar

Install

npm i chars-client

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

5.76 kB

Total Files

4

Last publish

Collaborators

  • charcodes