Skip to content

Instantly share code, notes, and snippets.

@thomasbnt
Created October 19, 2017 22:00
Show Gist options
  • Save thomasbnt/ad2b7f9e742c37e0fca9466e9362e4ca to your computer and use it in GitHub Desktop.
Save thomasbnt/ad2b7f9e742c37e0fca9466e9362e4ca to your computer and use it in GitHub Desktop.
const { ShardingManager } = require('discord.js');
const shard = new ShardingManager('./discordemoji.js', {
token: 'nope',
autoSpawn: true
});
shard.spawn(); // Spawns recommended shards!
shard.on('launch', shard => console.log(`[SHARD] Shard ${shard.id}/${shard.totalShards}`));
/*
Credit to Melmsie and August
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment