sliceyjs
v1.1.4
Published
💫 SliceyJS is a utility module for DJS
Downloads
29
Maintainers
Readme
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()