don't respawn shard in dev env

This commit is contained in:
Erik 2022-05-01 23:47:50 +03:00
parent 5839d1c25d
commit b4a0627fe3
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -12,7 +12,8 @@ class BaseClient extends EventEmitter {
super(); super();
this.shardingManager = new ShardingManager('src/structure/DiscordClient.js', options.discord.shardOptions); const respawn = process.env.NODE_ENV !== 'development';
this.shardingManager = new ShardingManager('src/structure/DiscordClient.js', { ...options.discord.shardOptions, respawn });
this.slashCommandManager = new SlashCommandManager(this); this.slashCommandManager = new SlashCommandManager(this);
this.logger = new Logger(this, options.logger); this.logger = new Logger(this, options.logger);