sliceyjs
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

SliceyJS

Version License Written In Typescript Downloads Size

About

SliceyJS is a utility addon for the widely used Discord API module, discord.js. SliceyJS adds a handful of features the average bot developer might find useful or helpful when attempting to scale their bot to production!

  • Up-to-date
  • Lightweight
  • Consistent
  • Simple
  • TS & JS support

NOTICE: SliceyJS is still a WIP. It only offers clustering and sharding at the moment!

Installation

Node.js 16.6.0 or newer is required.

npm i discord.js
npm i sliceyjs

Basic Usage

const { Intents } = require('discord.js');
const { Client } = require('sliceyjs');

const bot = new Client('token', { intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });

bot.on('ready', () => {
  console.log(`Logged in as ${bot.user.tag}!`);
});

bot.on('messageCreate', message => {
  if (message.content === 'ping') {
    message.channel.send('pong');
  }
});

bot.login()

Links

Package Sidebar

Install

npm i sliceyjs

Weekly Downloads

3

Version

1.1.4

License

MIT

Unpacked Size

44.6 kB

Total Files

11

Last publish

Collaborators

  • nobush