mirror of
https://github.com/musix-org/musix-oss
synced 2025-08-01 20:54:33 +00:00
Debug channel conflict resolved
This commit is contained in:
5
index.js
5
index.js
@@ -1,6 +1,7 @@
|
||||
const config = require("./src/struct/config/config.ts");
|
||||
|
||||
if (config.devMode) {
|
||||
console.log('- dev mode- ');
|
||||
config.token = config.devToken;
|
||||
config.shards = 1;
|
||||
}
|
||||
@@ -8,6 +9,6 @@ if (config.devMode) {
|
||||
const { ShardingManager } = require('discord.js');
|
||||
const manager = new ShardingManager('./src/bot.ts', { token: config.token, respawn: config.respawn, totalShards: config.shards });
|
||||
|
||||
console.log('Launching shards...');
|
||||
console.log('- Launching shards -');
|
||||
manager.spawn(config.shards, config.shardDelay, config.shardTimeout);
|
||||
manager.on('shardCreate', shard => console.log(`Launched shard ${shard.id}`));
|
||||
manager.on('shardCreate', shard => console.log(`- Launched shard ${shard.id} -`));
|
Reference in New Issue
Block a user