mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 11:34:41 +12:00
3c62bd2d47
Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com> Co-authored-by: Almeida <almeidx@pm.me>
11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
'use strict';
|
|
|
|
const process = require('node:process');
|
|
const { token } = require('./auth');
|
|
const Discord = require('../src');
|
|
|
|
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, { token, respawn: false });
|
|
|
|
sharder.on('launch', shard => console.log(`launched ${shard.id}`));
|
|
|
|
sharder.spawn();
|