discord-auto-sharder

1.3.0 • Public • Published

discord-auto-sharder

discord-auto-sharder is a simple and automated sharding system for Discord.js bots. It automatically handles the creation of shards, manages shard statuses, and posts real-time updates to a designated Discord channel. This package simplifies the process of setting up sharding in a bot, requiring only the bot token and the channel ID for shard status updates.

Features

  • Automatic Shard Detection: Automatically detects the main entry file (index.js, bot.js, app.js).
  • Real-Time Shard Status Updates: Posts real-time updates for each shard to a specified channel in your Discord server.
  • Simple Setup: Just provide the bot token and channel ID—no need to manually configure shard files.

Installation

Install via npm

To install discord-auto-sharder in your project, run the following command:

npm install discord-auto-sharder

Usage

Create a new index.js file

const AutoSharder = require('discord-auto-sharder');

const TOKEN = 'your-discord-bot-token';       // Replace with your bot token
const STATUS_CHANNEL_ID = 'your-channel-id';  // Replace with the ID of the channel where you want shard updates

// Instantiate and run the AutoSharder
new AutoSharder(TOKEN, STATUS_CHANNEL_ID);

Run Your Bot

node index.js

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.08latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.08
1.2.07
1.1.07
1.0.07

Package Sidebar

Install

npm i discord-auto-sharder

Weekly Downloads

25

Version

1.3.0

License

MIT

Unpacked Size

7.49 kB

Total Files

4

Last publish

Collaborators

  • hjgaming