forked from Galactic/galactic-bot
don't respawn shard in dev env
This commit is contained in:
parent
5839d1c25d
commit
b4a0627fe3
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user