Seface Kit

A powerful discord.js Command and Event handler!

Seface Kit is under development, it is not recommended to use it for production environments

Adding to your project

Once your project meets the requirements, run the command below in the project terminal to install the package.

yarn add seface-kit or npm install seface-kit

After installed, you need to add SefaceKit inside your bot's 'ready' event.

const path = require('path');
const Discord = require('discord.js');
const { SefaceKit } = require('seface-kit');

const client = new Discord.Client({
  intents: [
    Discord.Intents.FLAGS.GUILDS,
    Discord.Intents.FLAGS.GUILD_MESSAGES,
    Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS
  ]
});

client.on('ready', () => {
  console.clear();

  new SefaceKit(client, {
    commandsIn: path.join(__dirname, 'commands'),
    eventsIn: path.join(__dirname, 'events'),
    prefix: '!'
  });

  client.user.setActivity({
    type: 'PLAYING',
    name: 'with seface-kit module'
  });

  console.log('The bot are online.');
});

client.login('BOT_TOKEN');

Last updated